Function at 0x41fb30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x4a00a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [ebp - 0x34c], ebx
cmp dword [esi + 0x10], 0x104
jae 0x41fe85
cmp dword [edi + 0x10], 0x104
jae 0x41fe85
xor eax, eax
mov dword [ebp - 0xc], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
call fcn.004047b0
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fc36
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x50]
call fcn.0041f850
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x41fbbe
push 0xffffffffffffffff
push ebx
push eax
call fcn.004047b0
lea ecx, [ebp - 0x50]
call fcn.00403da0
cmp dword [ebp - 0x10], ebx
je 0x41fc76
mov edx, esi
lea ecx, [ebp - 0x98]
call fcn.0041f850
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x41fe50
cmp dword [ebp - 0x10], eax
jb 0x41fc08
lea ecx, [ebp - 0x98]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00420740
test eax, eax
je 0x41fe50
push 3
push ecx
push esi
lea ecx, [ebp - 0x344]
call fcn.004348d0
push esi
call fcn.0041fea0
add esp, 4
test al, al
jne 0x41fc7d
lea ecx, [ebp - 0x344]
xor bl, bl
call fcn.00434a80
jmp 0x41fe52
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041e7c0
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.0041f850
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x41fc5d
push 0xffffffffffffffff
push 0
push eax
call fcn.004047b0
lea ecx, [ebp - 0x50]
call fcn.00403da0
lea ecx, [ebp - 0x38]
call fcn.00403da0
cmp dword [ebp - 0x10], ebx
jne 0x41fbcf
xor bl, bl
jmp 0x41fe5d
push esi
lea ecx, [ebp - 0x68]
call fcn.00403ec0
push esi
call fcn.0041fec0
add esp, 4
mov byte [ebp - 0x34c], al
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x345], 1
push esi
call fcn.00403ec0
push edi
call fcn.0041fec0
add esp, 4
test al, al
je 0x41fcd6
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.0041e7c0
lea ecx, [ebp - 0x80]
cmp ecx, eax
je 0x41fcce
push 0xffffffffffffffff
push 0
push eax
call fcn.004047b0
lea ecx, [ebp - 0x50]
call fcn.00403da0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [eax]
cmp dword [ebp - 0x58], 0
je 0x41fe21
xor eax, eax
mov dword [ebp - 0x24], 7
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
call fcn.004047b0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x80]
call fcn.0041e0c0
test al, al
je 0x41fd32
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x80]
call fcn.0041e4d0
test al, al
je 0x41fe44
cmp byte [ebp - 0x34c], 0
lea eax, [ebp - 0x38]
je 0x41fd77
cmp dword [ebp - 0x24], 8
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fd59
shr eax, 4
and al, 1
jne 0x41fda2
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call esi
test eax, eax
jne 0x41fda2
test bl, 4
je 0x41fd9b
and ebx, 0xfffffffb
jmp 0x41fd90
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004205f0
add esp, 8
test al, al
jne 0x41fda2
test bl, 8
je 0x41fd9b
and ebx, 0xfffffff7
lea ecx, [ebp - 0x3fc]
call fcn.00419b40
mov byte [ebp - 0x345], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x344]
call fcn.00434b90
lea ecx, [ebp - 0x68]
cmp ecx, eax
je 0x41fdc2
push 0xffffffffffffffff
push 0
push eax
call fcn.004047b0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x41fdd7
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.004055d0
cmp dword [ebp - 0x58], 0
je 0x41fdff
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x344]
call fcn.00434b30
mov eax, dword [eax]
shr eax, 4
and eax, 0xffffff01
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x41fe14
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.004055d0
cmp byte [ebp - 0x345], 0
jne 0x41fce0
mov bl, byte [ebp - 0x345]
lea ecx, [ebp - 0x80]
call fcn.00403da0
lea ecx, [ebp - 0x68]
call fcn.00403da0
lea ecx, [ebp - 0x344]
call fcn.00434a80
jmp 0x41fe52
lea ecx, [ebp - 0x38]
xor bl, bl
call fcn.00403da0
jmp 0x41fe27
xor bl, bl
lea ecx, [ebp - 0x98]
call fcn.00403da0
mov ecx, dword [ebp - 0xc]
cmp ecx, 8
jb 0x41fe72
inc ecx
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.004055d0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466c90
mov esp, ebp
pop ebp
ret