Function at 0x430690
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500ccb
mov eax, dword fs:[0]
push eax
mov eax, 0x1834
call fcn.004aa060
mov eax, dword [0x54c728]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 3
push 0
push eax
call fcn.004ccab0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x810]
push eax
call esi
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x810]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x1830], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x182c], 7
mov word [ebp - 0x1840], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430734
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1840]
call fcn.004042a0
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.004ccab0
add esp, 0xc
lea eax, [ebp + 0x38]
cmp dword [ebp + 0x4c], 8
cmovae eax, dword [ebp + 0x38]
push eax
lea eax, [ebp - 0x810]
push eax
call esi
cmp dword [ebp + 0x64], 8
lea eax, [ebp + 0x50]
cmovae eax, dword [ebp + 0x50]
push eax
lea eax, [ebp - 0x810]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x1818], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x1814], 7
mov word [ebp - 0x1828], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4307c0
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1828]
call fcn.004042a0
push 0x1000
lea eax, [ebp - 0x1810]
xor bl, bl
push 0
push eax
call fcn.004ccab0
add esp, 0xc
lea eax, [ebp - 0x1828]
cmp dword [ebp - 0x1814], 8
cmovae eax, dword [ebp - 0x1828]
push eax
lea eax, [ebp - 0x1810]
push eax
call esi
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x1810]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x1810]
je 0x43084b
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4308b4
jmp 0x43085a
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x4308b4
cmp dword [ebp - 0x1814], 8
lea eax, [ebp - 0x1828]
cmovae eax, dword [ebp - 0x1828]
push eax
call esi
mov edx, dword [ebp + 0x68]
test eax, eax
je 0x43087d
cmp edx, 1
je 0x4308b4
cmp dword [ebp - 0x1814], 8
lea ecx, [ebp - 0x1828]
push edx
cmovae ecx, dword [ebp - 0x1828]
lea eax, [ebp - 0x1840]
cmp dword [ebp - 0x182c], 8
push ecx
cmovae eax, dword [ebp - 0x1840]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete bl
mov edx, dword [ebp - 0x1814]
cmp edx, 8
jb 0x4308f4
mov ecx, dword [ebp - 0x1828]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4308ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430aab
push edx
push ecx
call fcn.004a96a6
add esp, 8
mov edx, dword [ebp - 0x182c]
xor eax, eax
mov dword [ebp - 0x1818], 0
mov dword [ebp - 0x1814], 7
mov word [ebp - 0x1828], ax
cmp edx, 8
jb 0x430951
mov ecx, dword [ebp - 0x1840]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430947
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430ab0
push edx
push ecx
call fcn.004a96a6
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x1830], 0
mov dword [ebp - 0x182c], 7
mov word [ebp - 0x1840], ax
cmp edx, 8
jb 0x4309a8
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43099e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430ab5
push edx
push ecx
call fcn.004a96a6
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x4309f6
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4309ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430aba
push edx
push ecx
call fcn.004a96a6
add esp, 8
mov edx, dword [ebp + 0x4c]
xor eax, eax
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 7
mov word [ebp + 0x20], ax
cmp edx, 8
jb 0x430a44
mov ecx, dword [ebp + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430a3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430abf
push edx
push ecx
call fcn.004a96a6
add esp, 8
mov edx, dword [ebp + 0x64]
xor eax, eax
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 7
mov word [ebp + 0x38], ax
cmp edx, 8
jb 0x430a8e
mov ecx, dword [ebp + 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430a84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430ac4
push edx
push ecx
call fcn.004a96a6
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a995c
mov esp, ebp
pop ebp
ret
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
call fcn.004d003c
int3