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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7930
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4fca20]
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 ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00402008
lea edx, [ebp - 0x30]
xor edi, edi
push edx
mov dword [ebp - 4], edi
call fcn.0045c9a0
add esp, 4
mov eax, dword [eax]
push eax
push str.document
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00410d50
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46dc75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov ecx, dword [ebp - 0x38]
push edi
push 0x8000000
push 3
push edi
push 1
push SysReAllocStringLen
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x46dcd9
call fcn.00404842
mov esi, eax
cmp esi, edi
jl 0x46ddf0
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x46dccf
call fcn.00404842
cmp eax, edi
jl 0x46dcde
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov ebx, eax
mov dword [ebp - 0x30], ecx
jmp 0x46dce1
mov dword [ebp - 0x48], eax
jmp 0x46dcad
mov ebx, dword [ebp - 0x34]
lea edi, [ebx + 1]
push edi
call fcn.0047c9d3
push edi
mov esi, eax
push 0
push esi
call fcn.0047e610
mov edi, dword [ebp - 0x48]
add esp, 0x10
push 0
lea edx, [ebp - 0x4c]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46de34
call fcn.00404842
mov dword [ebp - 0x3c], eax
test eax, eax
js 0x46ddd9
mov ebx, dword [ebp - 0x40]
push esi
mov ecx, ebx
call fcn.00403254
push 2
lea ecx, [ebp - 0x64]
call fcn.00414680
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00414d70
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov edi, vtable.CResponseDecoder.0
mov dword [ebp - 0x30], edi
push eax
push str.135246
lea ecx, [ebp - 0x2c]
push ecx
sub esp, 0x10
lea edx, [ebp - 0x60]
mov ecx, esp
mov dword [ebp - 0x40], esp
push edx
mov byte [ebp - 4], 5
call fcn.00414260
lea ecx, [ebp - 0x30]
call fcn.004af780
test eax, eax
je 0x46dda1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x46dd99
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.00401d77
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], edi
jb 0x46ddb6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047d656
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
call fcn.004146c0
mov edi, dword [ebp - 0x48]
push esi
call fcn.0047d656
add esp, 4
test edi, edi
je 0x46dded
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46de16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.0047e4d2
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x3c], 0
jmp 0x46dd22