Function at 0x4596a0
Capabilities:
Get file size
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2e0
mov eax, dword [0x671580]
xor eax, esp
mov dword [esp + 0x2dc], eax
mov eax, dword [esp + 0x2e8]
push ebx
mov ebx, dword [esp + 0x2e8]
push ebp
push esi
push edi
push 0x30
mov dword [esp + 0x1c], eax
mov esi, ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x18], ebx
push 0
push eax
mov dword [esp + 0x1c], 0x800b0100
call fcn.004cf790
add esp, 8
mov dword [esp + 0x78], 0
xorps xmm0, xmm0
mov dword [esp + 0x7c], 0xf750e6c3
mov edx, closesocket
mov dword [esp + 0x80], 0x11d138ee
movups xmmword [esp + 0x58], xmm0
push 0
push 3
push ecx
push 1
mov ecx, ebx
mov dword [esp + 0x94], 0xc000e585
movups xmmword [esp + 0x78], xmm0
mov dword [esp + 0x98], 0xee95c24f
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x34], 0
call fcn.0045b5e0
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x459a1c
test ebx, ebx
je 0x459a1c
lea eax, [esp + 0x88]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x459a15
cmp dword [esp + 0x8c], 0
jg 0x459a15
jl 0x4597a6
cmp dword [esp + 0x88], 0x2000000
ja 0x459a15
push 0x100
mov dword [esp + 0x20], 0x100
call fcn.004c4b2b
add esp, 4
lea ecx, [esp + 0x1c]
mov edi, eax
mov eax, dword [esi + 4]
push 0
push edi
push ecx
push ebx
call eax
test eax, eax
jne 0x45980d
push edi
call fcn.004c4b26
add esp, 4
push dword [esp + 0x1c]
call fcn.004c4b2b
add esp, 4
lea ecx, [esp + 0x1c]
mov edi, eax
mov eax, dword [esi + 4]
push 0
push edi
push ecx
push ebx
call eax
test eax, eax
jne 0x45980d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004c4b26
add esp, 4
jmp 0x459a1c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
lea ecx, [esp + 0x78]
push 0
push ecx
lea ecx, [esp + 0x28]
push ecx
call eax
test eax, eax
je 0x4597ff
mov eax, dword [0x655eb8]
xor ecx, ecx
movups xmm0, xmmword [str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________]
mov dword [esp + 0x2e0], eax
mov edx, 2
mov ax, word [0x655ebc]
mov word [esp + 0x2e4], ax
mov eax, dword [esp + 0x1c]
movups xmmword [esp + 0x2a0], xmm0
movups xmm0, xmmword [0x655e88]
lea eax, [eax*2 + 1]
mul edx
movups xmmword [esp + 0x2b0], xmm0
movups xmm0, xmmword [0x655e98]
movups xmmword [esp + 0x2c0], xmm0
seto cl
movups xmm0, xmmword [0x655ea8]
neg ecx
or ecx, eax
push ecx
movups xmmword [esp + 0x2d4], xmm0
call fcn.004c4b2b
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x1c]
xor ecx, ecx
test eax, eax
je 0x4598e0
nop
movzx eax, byte [ecx + edi]
shr eax, 4
movsx eax, byte [esp + eax + 0x2a0]
mov word [ebx + ecx*4], ax
movzx eax, byte [ecx + edi]
and eax, 0xf
movsx eax, byte [esp + eax + 0x2a0]
mov word [ebx + ecx*4 + 2], ax
inc ecx
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jb 0x4598b0
xor ecx, ecx
push ecx
push ecx
mov word [ebx + eax*4], cx
push dword [esp + 0x24]
mov eax, dword [esi + 0xc]
push edi
push dword [esp + 0x30]
call eax
push edi
mov ebp, eax
call fcn.004c4b26
add esp, 4
test ebp, ebp
je 0x4599f6
push 0x20c
lea eax, [esp + 0x94]
push 0
push eax
call fcn.004cf790
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x9c]
add esp, 0xc
push 0
push ecx
push ebp
call eax
test eax, eax
je 0x4599ea
cmp byte [esi], 0
lea eax, [esp + 0x94]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x24
mov dword [esp + 0x60], ebx
mov dword [esp + 0x24], 0x30
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 2
mov dword [esp + 0x40], 1
mov dword [esp + 0x3c], eax
je 0x459996
or dword [esp + 0x4c], 0x1200
jmp 0x45999b
or dword [esp + 0x4c], 0x10
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x7c]
push ecx
push 0xffffffffffffffff
call eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x4599d1
xor edx, edx
mov word [ecx], dx
cmp eax, 0x800b0100
je 0x4599d1
push ecx
push ecx
push dword [esp + 0x4c]
mov ecx, esi
call fcn.00459580
lea eax, [esp + 0x24]
mov dword [esp + 0x40], 2
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esi + 0x24]
push 0xffffffffffffffff
call eax
mov eax, dword [esi + 0x14]
push 0
push ebp
push dword [esp + 0x28]
call eax
push ebx
call fcn.004c4b26
mov eax, dword [esi + 0x18]
add esp, 4
push 0
push dword [esp + 0x24]
call eax
push dword [esp + 0x10]
call fcn.00459a40
jmp 0x459a21
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c4309
add esp, 0x2e0
ret 0xc