Function at 0x47c820
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ae6c
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x26c], ebx
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x47cd07
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], ebx
test esi, esi
je 0x47c8b1
test esi, 0xffff0000
jne 0x47c899
movzx eax, si
lea ecx, [ebp - 0x268]
push eax
call fcn.004295b0
jmp 0x47c8c0
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c8a0
sub ecx, edx
sar ecx, 1
jmp 0x47c8b3
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.00429870
mov dword [ebp - 4], 1
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x47cd11
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 2
test edi, edi
je 0x47c921
test edi, 0xffff0000
jne 0x47c905
movzx eax, di
lea ecx, [ebp - 0x264]
push eax
call fcn.004295b0
jmp 0x47c930
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c910
sub ecx, edx
sar ecx, 1
jmp 0x47c923
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x264]
call fcn.00429870
push 0x5ad788
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00429080
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x27c]
mov esi, eax
or edi, 0xffffffff
mov dword [ebp - 0x278], esi
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47c986
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x47c995
mov ebx, 1
jmp 0x47cb1f
mov esi, dword [ebp - 0x264]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47c9c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x47cb11
jmp 0x47c9c0
test byte [ebp - 0x260], 0x10
je 0x47cb80
push 0x5ad72c
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x47cce4
push 0x5ad730
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x47cce4
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.00429080
push 0x5ad728
push eax
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 4
push eax
call fcn.00429080
mov edi, eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.00429080
push 0x5ad728
push eax
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 6
push eax
call fcn.00429080
push dword [edi]
mov byte [ebp - 4], 7
push dword [eax]
call fcn.0047c820
mov edx, dword [ebp - 0x280]
or edi, 0xffffffff
mov dword [ebp - 0x290], eax
add esp, 0x38
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47caa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x284]
mov eax, edi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47cac2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x288]
mov eax, edi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47cae3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28c]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47cb04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x290], 0
jne 0x47cce4
xor ebx, ebx
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x264]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47cb40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x268]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x47cb62
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi - 0x10]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x47cb96
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x47cbac
call fcn.00428a90
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x47cd07
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
or ebx, 1
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x26c], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47cbd0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
push dword [esi - 0xc]
lea eax, [ebp - 0x270]
push esi
push eax
call fcn.0042ae30
add esp, 0x14
mov esi, dword [ebp - 0x268]
mov byte [ebp - 4], 9
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x47cc16
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x47cc2c
call fcn.00428a90
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x47cd07
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x234]
or ebx, 2
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x26c], ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47cc50
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
push dword [esi - 0xc]
lea eax, [ebp - 0x274]
push esi
push eax
call fcn.0042ae30
mov edi, dword [ebp - 0x270]
add esp, 0x14
mov esi, dword [ebp - 0x274]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 8
and ebx, 0xfffffffd
or esi, 0xffffffff
mov dword [ebp - 0x26c], ebx
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47ccb7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
and ebx, 0xfffffffe
mov byte [ebp - 4], 3
mov dword [ebp - 0x26c], ebx
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47ccdb
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x264]
or edi, 0xffffffff
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47c9c0
lea ebx, [eax + 1]
jmp 0x47cb13
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
int3