Function at 0x4cb4d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x57c870]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0
movsx eax, byte [ebp + 0x20]
cmp eax, 6
jne 0x4cb54f
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00532e80
add esp, 4
cmp eax, 8
jne 0x4cb54f
push 0x574794
mov edx, dword [ebp + 0x14]
push edx
call fcn.005327a0
add esp, 8
test eax, eax
jne 0x4cb54f
mov byte [ebp + 0x20], 9
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [0x70e4c4]
push ecx
call fcn.00532680
add esp, 8
test eax, eax
je 0x4cb54f
mov dword [ebp - 0x21c], 1
movsx edx, byte [ebp + 0x20]
cmp edx, 6
jne 0x4cb57e
mov eax, dword [ebp + 0x10]
push eax
movsx ecx, byte [ebp + 0x20]
mov edx, dword [ecx*4 + 0x70e4a0]
push edx
call fcn.00532680
add esp, 8
test eax, eax
je 0x4cb57e
mov dword [ebp - 0x21c], 1
movsx eax, byte [ebp + 0x20]
test eax, eax
je 0x4cb5a2
mov ecx, dword [ebp + 0x14]
push ecx
movsx edx, byte [ebp + 0x20]
mov eax, dword [edx*4 + 0x70e4a0]
push eax
call fcn.00532680
add esp, 8
test eax, eax
jne 0x4cb5cd
cmp dword [ebp - 0x21c], 0
jne 0x4cb5cd
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x574798
lea ecx, [ebp - 0x428]
push ecx
call fcn.00532706
add esp, 0x14
jmp 0x4cb608
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x658fd8
push 0x65ab60
push 0x5747a4
lea ecx, [ebp - 0x428]
push ecx
call fcn.00532706
add esp, 0x18
push 0x65ab60
call fcn.00532e80
add esp, 4
add eax, 1
mov dword [0x5fda7c], eax
push 2
lea edx, [ebp - 0x428]
push edx
call fcn.004869a0
add esp, 8
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00532580
add esp, 8
mov dword [0x5fd944], 0x76
push 0x5747b0
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.005327a0
add esp, 8
test eax, eax
jne 0x4cb68d
lea edx, [ebp - 0x428]
push edx
call fcn.00532e80
add esp, 4
mov byte [ebp + eax - 0x42a], 0x5a
push 0x5747b4
lea eax, [ebp - 0x428]
push eax
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x428]
push ecx
call fcn.00532e80
add esp, 4
mov byte [ebp + eax - 0x42a], 0x41
cmp dword [ebp - 0x10], 0
jne 0x4cb6aa
push 0x5747b8
lea edx, [ebp - 0x428]
push edx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4cb873
cmp dword [0x5fda78], 1
jne 0x4cb873
mov eax, dword [0x5fda7c]
push eax
push 0x658fd8
lea ecx, [ebp - 0x428]
push ecx
call fcn.0042ec20
add esp, 0xc
push 0x5747bc
mov edx, dword [ebp + 0x14]
push edx
call fcn.005327a0
add esp, 8
test eax, eax
jne 0x4cb735
lea eax, [ebp - 0x428]
push eax
call fcn.00532e80
add esp, 4
mov byte [ebp + eax - 0x42a], 0x5a
push 0x5747c0
lea ecx, [ebp - 0x428]
push ecx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x428]
push edx
call fcn.00532e80
add esp, 4
mov byte [ebp + eax - 0x42a], 0x41
cmp dword [ebp - 0x10], 0
jne 0x4cb752
push 0x5747c4
lea eax, [ebp - 0x428]
push eax
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x118]
push edx
call fcn.00532580
add esp, 8
cmp dword [ebp - 0x10], 0
jne 0x4cb7fe
mov eax, dword [0x5fda7c]
push eax
lea ecx, [ebp - 0x428]
push ecx
call fcn.0042ec50
add esp, 8
push 0x5747c8
mov edx, dword [ebp + 0x14]
push edx
call fcn.005327a0
add esp, 8
test eax, eax
jne 0x4cb7e1
lea eax, [ebp - 0x428]
push eax
call fcn.00532e80
add esp, 4
mov byte [ebp + eax - 0x42a], 0x5a
push 0x5747cc
lea ecx, [ebp - 0x428]
push ecx
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x428]
push edx
call fcn.00532e80
add esp, 4
mov byte [ebp + eax - 0x42a], 0x41
cmp dword [ebp - 0x10], 0
jne 0x4cb7fe
push 0x5747d0
lea eax, [ebp - 0x428]
push eax
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4cb873
push 0x5747d4
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005327a0
add esp, 8
test eax, eax
jne 0x4cb873
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x428]
push eax
call fcn.00532580
add esp, 8
push 3
push 0x5747dc
mov ecx, dword [0x5fda7c]
lea edx, [ebp + ecx - 0x428]
push edx
call fcn.00532bd0
add esp, 0xc
push 0x5747e0
lea eax, [ebp - 0x428]
push eax
call fcn.0042eaa0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4cb873
mov dword [0x5fd978], 1
cmp dword [ebp - 0x10], 0
je 0x4cbca7
lea ecx, [ebp - 0x428]
push ecx
push 0x5747e4
lea edx, [ebp - 0x320]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
push 3
call fcn.00436500
add esp, 8
push 2
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00532940
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.00532b62
add esp, 4
mov dword [ebp - 0x324], eax
mov eax, dword [ebp - 0x324]
and eax, reloc.WSOCK32.dll_ntohs
jns 0x4cb8dd
dec eax
or eax, 0xfffffff0
inc eax
mov ecx, 0x10
sub ecx, eax
add ecx, dword [ebp - 0x324]
mov dword [ebp - 8], ecx
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00532940
add esp, 0xc
cmp dword [ebp - 8], 0xffff
jle 0x4cb911
mov eax, dword [ebp - 8]
add eax, 0x200
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx*4 + 0x5fe5b4], 0
je 0x4cb940
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x656460]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x656460]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx*4 + 0x656460], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x656460]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 8]
mov dword [ecx*4 + 0x5fe5b4], eax
mov edx, dword [ebp + 8]
push edx
call fcn.004cc3a0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x5fe5b4]
mov dword [ebp - 0x494], ecx
cmp dword [ebp - 0x494], 0
jne 0x4cb9c0
lea edx, [ebp - 0x428]
push edx
push 0x5747f0
lea eax, [ebp - 0x218]
push eax
call fcn.00532706
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call fcn.004f50c0
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x494]
push ecx
call fcn.0053367b
add esp, 0x10
mov edx, dword [ebp - 0x494]
add edx, dword [ebp - 0x324]
mov byte [edx], 0
push 8
push str._r_n_r_n
mov eax, dword [ebp - 0x494]
push eax
call fcn.0053387c
add esp, 0xc
test eax, eax
jne 0x4cbba9
mov ecx, dword [ebp - 0x494]
add ecx, 8
mov dword [ebp - 0x498], ecx
mov edx, dword [ebp - 0x498]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x498]
movzx edx, byte [ecx + 1]
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 0x498]
movzx edx, byte [ecx + 2]
shl edx, 8
shl edx, 8
add eax, edx
mov ecx, dword [ebp - 0x498]
movzx edx, byte [ecx + 3]
shl edx, 8
shl edx, 8
shl edx, 8
add eax, edx
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp - 0x494]
add eax, 0xc
mov dword [ebp - 0x498], eax
mov ecx, dword [ebp - 0x498]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x498]
movzx ecx, byte [eax + 1]
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x498]
movzx ecx, byte [eax + 2]
shl ecx, 8
shl ecx, 8
add edx, ecx
mov eax, dword [ebp - 0x498]
movzx ecx, byte [eax + 3]
shl ecx, 8
shl ecx, 8
shl ecx, 8
add edx, ecx
mov dword [ebp - 0x49c], edx
mov edx, dword [ebp - 0x49c]
add edx, 0xa
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x4a4]
push ecx
mov edx, dword [ebp - 0x494]
add edx, 0x10
push edx
lea eax, [ebp - 0x49c]
push eax
mov ecx, dword [ebp - 0x4a0]
push ecx
call fcn.0049d3d0
add esp, 0x10
mov edx, dword [ebp + 8]
cmp dword [edx*4 + 0x5fe5b4], 0
je 0x4cbb32
mov eax, dword [ebp + 8]
mov ecx, dword [eax*4 + 0x656460]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x656460]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x4a8]
mov dword [ecx*4 + 0x656460], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x4a0]
mov dword [eax*4 + 0x5fe5b4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx*4 + 0x5fe5b4]
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x49c]
mov dword [ebp - 0x324], ecx
mov edx, dword [ebp - 0x494]
add edx, dword [ebp - 0x324]
mov byte [edx], 0
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp - 0x324]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x494]
push edx
call fcn.004f3c20
add esp, 0x18
cwde
mov dword [ebp - 0xc], eax
jmp 0x4cbbe9
mov ecx, dword [ebp - 0x494]
add ecx, dword [ebp - 0x324]
mov edx, dword [ebp - 4]
mov byte [ecx + edx], 0
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp - 0x324]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x494]
push edx
call fcn.004f3c20
add esp, 0x18
cwde
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00431d50
add esp, 4
cmp dword [ebp - 0xc], 2
jl 0x4cbc3e
push 0x574818
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + edx*4 - 8]
push ecx
call fcn.00532680
add esp, 8
test eax, eax
jne 0x4cbc33
push 0x57481c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + edx*4 - 4]
push ecx
call fcn.00532680
add esp, 8
test eax, eax
je 0x4cbc3e
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4cbbfb
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x24]
jle 0x4cbc70
lea ecx, [ebp - 0x428]
push ecx
push 0x574820
lea edx, [ebp - 0x490]
push edx
call fcn.00532706
add esp, 0xc
lea eax, [ebp - 0x490]
push eax
call fcn.004f50c0
add esp, 4
cmp dword [0x5c6c1c], 0
je 0x4cbca0
push 0x574834
lea ecx, [ebp - 0x428]
push ecx
call fcn.00532680
add esp, 8
test eax, eax
je 0x4cbca0
lea edx, [ebp - 0x428]
push edx
call fcn.004d0790
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x4cbcb8
lea eax, [ebp - 0x428]
push eax
call fcn.004a80b0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00532783
mov esp, ebp
pop ebp
ret