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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c3f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1fc
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xd8], 0x56b594
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xd8]
push ebx
push eax
push ecx
lea ecx, [edi + 8]
mov byte [ebp - 4], 2
call fcn.0051b270
test al, al
jne 0x470c13
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 1
call fcn.0043fb90
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x78]
cmp dword [eax - 8], ebx
jle 0x470ca4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x470ca4
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x14]
push edx
push 0x5a3e24
push eax
call fcn.0053afda
add esp, 0xc
lea ecx, [ebp - 0x208]
call fcn.00451a20
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 3
mov eax, dword [eax - 8]
cmp eax, 5
lea eax, [ebp - 0x58]
jg 0x470c63
lea eax, [ebp - 0x88]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
push ebx
push eax
push ecx
lea ecx, [ebp - 0x208]
call fcn.00455570
push 0x18
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
call fcn.0054276d
add esp, 4
cmp eax, ebx
je 0x470cf2
mov esi, eax
mov dword [eax + 4], 0x56d140
mov dword [eax + 8], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov dword [ebp - 0x18], esi
jmp 0x470cf7
cmp byte [ebp - 0x9a], 4
jne 0x470cd3
mov eax, dword [ebp - 0x74]
cmp dword [eax - 8], ebx
jle 0x470cd3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x470cd3
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x14]
push ecx
push 0x5a3e24
push edx
jmp 0x470c38
mov ecx, dword [0x5c7560]
cmp ecx, ebx
je 0x470be5
push 1
push str.Error_839415
call fcn.0045eb80
jmp 0x470be5
mov dword [ebp - 0x18], ebx
mov esi, ebx
cmp esi, ebx
je 0x470dca
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 0x28]
mov dword [esi], edx
test ebx, ebx
je 0x470db0
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 4
mov ecx, dword [eax + 4]
push ecx
push 0x5a3e24
push edx
call fcn.0053afda
mov edi, dword [esi + 0xc]
add esi, 4
add esp, 0xc
mov ecx, esi
lea eax, [edi + 1]
push 0xffffffffffffffff
push eax
call fcn.00478ab0
mov edx, dword [esi + 4]
lea ecx, [edi + edi*2]
lea eax, [ebp - 0x24]
lea esi, [edx + ecx*4]
push eax
mov ecx, esi
call fcn.005422f7
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [esi + 4]
call fcn.005422f7
lea edx, [ebp - 0x1c]
lea ecx, [esi + 8]
push edx
call fcn.005422f7
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.005421be
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.005421be
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.005421be
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebx + 0x1c]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x470d07
mov eax, dword [edi + 0x52c]
push esi
push 0x13fb
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x470ddd
push eax
lea ecx, [ebp - 0x208]
call fcn.004550c0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.00474c60
mov edx, dword [edi + 0x530]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push ebx
push ebx
push 0x1425
push edx
call esi
mov ecx, dword [edi + 0x4c8]
mov eax, dword [edi + 0x40c]
push ebx
push 0x1427
inc ecx
push 0x111
push eax
mov dword [edi + 0x4c8], ecx
call esi
lea ecx, [ebp - 0x208]
mov byte [ebp - 4], 2
call fcn.00451dc0
jmp 0x470be5