Function at 0x47c130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dc972
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x47c15d
cmp word [eax], 0
jne 0x47c178
mov esi, dword [esp + 0x15c]
test esi, esi
je 0x47c5cf
cmp word [esi], 0
je 0x47c5cf
jmp 0x47c17f
mov esi, dword [esp + 0x15c]
test eax, eax
je 0x47c199
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c186
sub eax, edx
sar eax, 1
mov ebp, eax
jmp 0x47c19b
xor ebp, ebp
test esi, esi
je 0x47c1b7
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c1a4
sub eax, edx
sar eax, 1
mov edi, eax
jmp 0x47c1b9
xor edi, edi
xor ebx, ebx
cmp dword [0x51dc98], ebx
jbe 0x47c5cf
mov esi, 0x51d684
lea esp, [esp]
test ebp, ebp
je 0x47c20e
mov eax, dword [esi]
test eax, eax
jne 0x47c1e7
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x15c]
push ebp
jmp 0x47c240
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c1f0
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x15c]
push ebp
jmp 0x47c240
mov eax, dword [esi + 0x168]
test eax, eax
jne 0x47c21c
xor ecx, ecx
jmp 0x47c231
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c220
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [esi + 0x168]
push ecx
mov ecx, dword [esp + 0x160]
push edi
call fcn.004ac110
add esp, 8
test eax, eax
sete al
test al, al
jne 0x47c266
inc ebx
add esi, 0xc
cmp ebx, dword [0x51dc98]
jb 0x47c1d0
jmp 0x47c5cf
mov edi, dword [esp + 0x160]
lea esi, [ebx + ebx*2]
lea esi, [esi*4 + 0x51d950]
call fcn.004140c0
mov ebp, dword [esp + 0x164]
lea eax, [esp + 0x7c]
mov dword [ebx*4 + 0x51dc20], ebp
call fcn.00473460
xor eax, eax
mov dword [esp + 0x150], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [ebx + ebx*2]
mov byte [esp + 0x150], 1
mov esi, dword [eax*4 + 0x51d684]
push 0x50c66c
call fcn.004a4b10
add esp, 4
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x84]
push edx
mov ecx, esi
call fcn.00477a40
add esp, 0xc
test al, al
jne 0x47c2f9
mov esi, dword [esp + 0x24]
test esi, esi
je 0x47c5c6
mov eax, dword [esp + 0x20]
push eax
jmp 0x47c5b2
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x150], 2
cmp byte [esp + 0x84], al
je 0x47c4e2
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x150], 3
mov ebx, dword [0x51e664]
lea eax, [esp + 0x2c]
call fcn.00414350
xor ebp, ebp
test eax, eax
je 0x47c359
mov ecx, dword [esp + 0xd8]
push 1
push ebp
push ecx
lea esi, [esp + 0x38]
call fcn.004148c0
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x160]
mov edi, dword [esp + 0x7c]
mov esi, dword [edx + 4]
push ebp
push ebx
push 0x50c66c
call fcn.004a4b10
add esp, 4
push eax
mov eax, dword [esp + 0x170]
push eax
push esi
push 3
push ebp
lea ecx, [esp + 0x30]
push ebp
push ecx
cmp edi, ebp
jne 0x47c3a2
call fcn.004795d0
add esp, 0x24
mov byte [esp + 0x13], al
jmp 0x47c43c
call fcn.00478d30
add esp, 0x24
mov byte [esp + 0x13], al
cmp edi, 2
jne 0x47c43c
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
push 0x509ffc
mov byte [esp + 0x154], 4
call fcn.004a4b10
mov edx, dword [esp + 0x168]
add esp, 4
push eax
mov eax, dword [esp + 0x1c]
push ebp
push edx
push eax
lea ecx, [esp + 0x174]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0047cae0
add esp, 0x14
test eax, eax
je 0x47c428
lea ecx, [esp + 0x38]
call fcn.00413fb0
lea ecx, [esp + 0x2c]
call fcn.00413fb0
lea ecx, [esp + 0x14]
call fcn.00413fb0
lea ecx, [esp + 0x20]
call fcn.00413fb0
jmp 0x47c5c6
lea edi, [esp + 0x38]
lea esi, [esp + 0x14]
call fcn.00414130
mov ecx, edi
call fcn.00413fb0
mov byte [esp + 0x150], 2
cmp ebx, ebp
je 0x47c460
mov edx, dword [esp + 0x2c]
push edx
push ebp
push ebx
call fcn.004d2f90
add esp, 0xc
push ebx
call fcn.004ca991
add esp, 4
mov ebp, dword [esp + 0x164]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x13], 0
je 0x47c588
mov esi, dword [esp + 0xcc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47c49a
push esi
call fcn.00482a30
add esp, 4
test al, al
je 0x47c411
lea esi, [esp + 0x44]
call fcn.0041c4b0
mov byte [esp + 0x150], 5
cmp ebp, 0xffffffff
jae 0x47c577
mov edx, dword [esp + 0xc0]
push 1
xor eax, eax
mov ecx, esi
call fcn.004a5710
test al, al
je 0x47c577
cmp byte [esp + 0x84], 0
push edi
je 0x47c536
mov edi, ebp
call fcn.004a5ed0
jmp 0x47c542
mov esi, dword [edi + 4]
push 0x50c66c
call fcn.004a4b10
add esp, 4
push eax
push ebp
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.0047a4c0
mov edi, dword [esp + 0x28]
add esp, 0x10
mov byte [esp + 0x13], al
test edi, edi
jne 0x47c517
xor eax, eax
mov ebp, eax
jmp 0x47c46b
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c520
sub eax, edx
sar eax, 1
mov ebp, eax
jmp 0x47c46b
lea eax, [esp + 0x48]
push eax
mov eax, ebp
call fcn.004a5cc0
test eax, eax
lea ecx, [esp + 0x44]
setne bl
mov byte [esp + 0x150], 2
call fcn.0041c500
lea ecx, [esp + 0x14]
call fcn.00413fb0
lea ecx, [esp + 0x20]
call fcn.00413fb0
lea esi, [esp + 0x7c]
call fcn.00473520
mov al, bl
jmp 0x47c5d1
lea ecx, [esp + 0x44]
mov byte [esp + 0x150], 2
call fcn.0041c500
test edi, edi
je 0x47c5a5
mov ecx, dword [esp + 0x14]
push ecx
push 0
push edi
call fcn.004d2f90
add esp, 0xc
push edi
call fcn.004ca991
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x47c5c6
mov edx, dword [esp + 0x20]
push edx
push 0
push esi
call fcn.004d2f90
add esp, 0xc
push esi
call fcn.004ca991
add esp, 4
lea esi, [esp + 0x7c]
call fcn.00473520
xor al, al
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x144
ret 0x10