Function at 0x4708d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x294
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x47dca0
mov edi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test ebx, ebx
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x4709dd
js 0x470bde
movzx eax, byte [0x4c0b90]
mov esi, edx
xor ecx, ecx
mov edx, ebx
call fcn.0046de40
test eax, eax
je 0x470be3
mov dword [ebp - 0x2c], edi
push ebx
push esi
mov dword [ebp - 0x24], eax
push eax
call fcn.0047eb10
add esp, 0xc
movzx eax, byte [0x4c0b90]
xor ecx, ecx
mov edx, ebx
call fcn.0046de40
test eax, eax
je 0x470bef
mov edi, eax
push ebx
push esi
push eax
call fcn.0047eb10
add esp, 0xc
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x298], ebx
mov byte [ebp - 0x294], 0
mov dword [ebp - 0x10], 5
lea ecx, [ebp - 0x2a0]
mov edx, 0x4b0179
push 1
call fcn.00469c80
add esp, 4
mov eax, dword [ebp - 0x2a0]
mov edx, dword [ebp - 0x29c]
mov esi, dword [ebp - 0x298]
mov byte [ebp - 0x1e], 1
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], edx
push esi
call fcn.00462620
add esp, 4
mov ecx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
cmp ecx, 0x80000000
jne 0x4709f0
mov edi, dword [ebp - 0x2c]
jmp 0x470a27
mov byte [edi + 4], 0
mov dword [edi + 8], 3
mov dword [edi], 2
jmp 0x470a62
mov dword [ebp - 0x2a0], ecx
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x2a0]
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x298], eax
mov byte [ebp - 0x1e], 1
call fcn.00468a20
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
cmp eax, 0x80000000
jne 0x470a76
mov eax, dword [ebp - 0x3c]
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov dword [edi], 2
mov bl, 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x470a4d
push dword [ebp - 0x38]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test bl, bl
je 0x470a62
push dword [ebp - 0x24]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x294
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x34], eax
push 0x250
push 0
lea esi, [ebp - 0x2a0]
push esi
call fcn.0047f090
add esp, 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x30], eax
je 0x470b47
movzx eax, byte [0x4c0b90]
xor ecx, ecx
mov edx, 0x18
call fcn.0046de40
mov ecx, dword [ebp + 8]
test eax, eax
je 0x470c08
mov esi, eax
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov byte [esi + 0x14], 0
lea eax, [edi + 4]
push 0x250
lea ecx, [ebp - 0x2a0]
push ecx
push eax
call fcn.0047eb10
add esp, 0xc
mov dword [edi], 1
mov dword [edi + 0x254], esi
mov esi, dword [ebp - 0x30]
mov dword [edi + 0x258], esi
cmp dword [ebp - 0x34], 0
je 0x470b22
push ebx
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x28], 0
je 0x470b39
push dword [ebp - 0x38]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, 0xffffffff
jne 0x470a62
jmp 0x470a51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
cmp eax, 2
jne 0x470bbf
movzx eax, byte [0x4c0b90]
xor ecx, ecx
mov edx, 0x18
call fcn.0046de40
test eax, eax
je 0x470c23
cmp dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x24]
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov byte [eax + 0x14], 0
mov dword [edi], 0
mov dword [edi + 0x254], eax
mov dword [edi + 0x258], 0xffffffff
je 0x470bb8
push ebx
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x470a35
mov esi, dword [ebp - 0x30]
mov byte [edi + 4], 0
mov dword [edi + 8], eax
mov dword [edi], 2
cmp dword [ebp - 0x34], 0
jne 0x470b13
jmp 0x470b22
call fcn.004010d0
mov ecx, 1
mov edx, ebx
call fcn.0048d220
mov ecx, 1
mov edx, ebx
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
call fcn.0048d220
jmp 0x470c3c
mov ecx, 4
mov edx, 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], 4
call fcn.0048d220
jmp 0x470c3c
mov ecx, 4
mov edx, 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], 3
call fcn.0048d220
ud2