Function at 0x47e530
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b151b
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
mov edx, dword [0x62e978]
mov ebx, dword [ebp + 8]
or edi, 0xffffffff
push edi
lea eax, [esp + 0x24]
xor ecx, ecx
push edx
lea esi, [esp + 0x24]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
call fcn.00444050
mov dword [esp + 0x2e8], 0
mov eax, dword [0x62ea00]
cmp word [eax], 0
jne 0x47e687
test ebx, ebx
je 0x47e5c1
push ebx
mov eax, esi
push eax
call fcn.00443f10
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, edi
jne 0x47e609
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x47e79d
push eax
call fcn.0058622f
add esp, 4
jmp 0x47e79d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x47e63d
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x47e79d
push eax
call fcn.0058622f
add esp, 4
jmp 0x47e79d
push esi
mov dword [esp + 0x1c], 0
call fcn.005759c5
add esp, 4
push 0
lea edx, [esp + 0x1c]
push edx
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], esi
je 0x47e779
push edi
call fcn.005759d0
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
jmp 0x47e61f
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00443f10
cmp byte [0x62e5e7], 0
je 0x47e6a3
mov ebx, dword [0x63573c]
jmp 0x47e6b6
mov eax, dword [esp + 0x1c]
push 2
push 0
push eax
call fcn.0045c430
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x47e618
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xa4]
push edx
push ebx
lea edx, [esp + 0x20]
call fcn.0045c4a0
add esp, 8
test eax, eax
jne 0x47e618
mov esi, dword [esp + 0x2d0]
test esi, esi
jne 0x47e700
mov dword [esp + 0x2e8], edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
jmp 0x47e629
push esi
call fcn.005759c5
add esp, 4
cmp dword [ebx], 1
mov edi, eax
je 0x47e71c
mov dword [0x635778], 0x80000
jmp 0x47e73c
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
push esi
push edi
push ecx
push eax
call fcn.0045c340
mov dword [0x635778], eax
test eax, eax
je 0x47e767
cmp eax, 0x600
je 0x47e767
push edi
call fcn.005759d0
add esp, 4
cmp byte [0x62e5e7], 0
jne 0x47e757
push ebx
call fcn.0045c630
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
jmp 0x47e5eb
cmp byte [0x62e5e7], 0
jne 0x47e779
push ebx
call fcn.0045c630
add esp, 4
mov dword [esp + 0x2e8], 0xffffffff
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x47e799
push eax
call fcn.0058622f
add esp, 4
test edi, edi
jne 0x47e815
mov edx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47e811
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x47e811
push esi
mov dword [esp + 0x18], 0
call fcn.005759c5
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], esi
je 0x47e80d
push edi
call fcn.005759d0
add esp, 4
xor eax, eax
jmp 0x47e82a
test edi, edi
jne 0x47e815
xor eax, eax
jmp 0x47e82a
push edi
mov eax, esi
call fcn.0047e850
push edi
mov esi, eax
call fcn.005759d0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.005832f8
mov esp, ebp
pop ebp
ret 4