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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x5c125c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x350], edx
xor ebx, ebx
push edi
mov dword [ebp - 0x34c], ebx
cmp dword [esi + 0x10], 0x104
jae 0x414a7e
cmp dword [edx + 0x10], 0x104
jae 0x414a7e
push edx
lea ecx, [ebp - 0x20]
call fcn.00407800
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 0x414809
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00414490
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x41477f
push 0xffffffffffffffff
push ebx
push eax
call fcn.00407e60
lea ecx, [ebp - 0x38]
call fcn.00407740
cmp dword [ebp - 0x10], ebx
je 0x41484f
mov edx, esi
lea ecx, [ebp - 0x80]
call fcn.00414490
mov edx, dword [ebp - 0x70]
test edx, edx
je 0x414a59
mov edi, dword [ebp - 0x10]
cmp edi, edx
jb 0x4147db
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x80]
push edx
cmovae ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x20]
cmp edx, edi
push ecx
cmovbe edi, edx
cmp dword [ebp - 0xc], 8
push edi
cmovae eax, dword [ebp - 0x20]
push eax
call fcn.00415410
add esp, 0x10
test eax, eax
je 0x414a59
push 3
push ecx
push esi
lea ecx, [ebp - 0x344]
call fcn.0041f310
push esi
call fcn.00414aa0
add esp, 4
test al, al
jne 0x41486c
lea ecx, [ebp - 0x344]
xor bl, bl
call fcn.0041f490
jmp 0x414a5b
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x20]
call fcn.00416cc0
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.00414490
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x414833
push 0xffffffffffffffff
push 0
push eax
call fcn.00407e60
lea ecx, [ebp - 0x38]
call fcn.00407740
lea ecx, [ebp - 0x98]
call fcn.00407740
cmp dword [ebp - 0x10], ebx
jne 0x414790
lea ecx, [ebp - 0x20]
xor bl, bl
call fcn.00407740
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004fce93
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x50]
call fcn.00407800
mov ecx, esi
call fcn.00414ac0
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x34c], al
mov byte [ebp - 0x345], 1
call fcn.00407800
mov edi, dword [ebp - 0x350]
mov ecx, edi
call fcn.00414ac0
test al, al
je 0x4148d0
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.00416cc0
lea ecx, [ebp - 0x68]
cmp ecx, eax
je 0x4148c2
push 0xffffffffffffffff
push 0
push eax
call fcn.00407e60
lea ecx, [ebp - 0x98]
call fcn.00407740
nop dword [eax]
cmp dword [ebp - 0x40], 0
je 0x414a2a
push edi
lea ecx, [ebp - 0x38]
call fcn.00407800
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.00416760
test al, al
je 0x41490b
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.00416a70
test al, al
je 0x414a4d
cmp byte [ebp - 0x34c], 0
je 0x414954
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414932
shr eax, 4
and al, 1
jne 0x41497d
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push 0
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41497d
test bl, 4
je 0x414976
and ebx, 0xfffffffb
jmp 0x41496b
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.00415050
test al, al
jne 0x41497d
test bl, 8
je 0x414976
and ebx, 0xfffffff7
lea ecx, [ebp - 0x404]
call fcn.0041ce50
mov byte [ebp - 0x345], 0
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x344]
call fcn.0041f4f0
lea ecx, [ebp - 0x50]
cmp ecx, eax
je 0x4149a0
push 0xffffffffffffffff
push 0
push eax
call fcn.00407e60
lea ecx, [ebp - 0x98]
call fcn.00407740
cmp dword [ebp - 0x40], 0
je 0x414a15
cmp byte [ebp - 0x344], 0
jne 0x4149eb
test bl, 0x10
je 0x4149cd
lea ecx, [ebp - 0x404]
and ebx, 0xffffffef
call fcn.0041ce50
push 0x250
lea eax, [ebp - 0x654]
push 0
push eax
call fcn.005033f0
mov eax, dword [ebp - 0x654]
add esp, 0xc
jmp 0x414a0a
mov eax, dword [ebp - 0x340]
lea esi, [ebp - 0x340]
mov ecx, 0x94
lea edi, [ebp - 0x654]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x350]
shr eax, 4
and al, 1
mov dword [ebp - 0x34c], eax
lea ecx, [ebp - 0x38]
call fcn.00407740
cmp byte [ebp - 0x345], 0
jne 0x4148d0
mov bl, byte [ebp - 0x345]
lea ecx, [ebp - 0x68]
call fcn.00407740
lea ecx, [ebp - 0x50]
call fcn.00407740
lea ecx, [ebp - 0x344]
call fcn.0041f490
jmp 0x414a5b
lea ecx, [ebp - 0x38]
xor bl, bl
call fcn.00407740
jmp 0x414a30
xor bl, bl
lea ecx, [ebp - 0x80]
call fcn.00407740
lea ecx, [ebp - 0x20]
call fcn.00407740
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004fce93
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.004fce93
mov esp, ebp
pop ebp
ret