Function at 0x5ab980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x6d5760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x5ac0a4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xf0]
push 0
push eax
push 4
lea eax, [ebp - 0xec]
push eax
push esi
call edi
test eax, eax
je 0x5ab9ea
cmp dword [ebp - 0xec], 0x6111101
je 0x5aba04
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b6a74
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp - 0xf0]
push eax
push 0xe0
lea eax, [ebp - 0xe4]
push eax
push esi
call edi
push esi
test eax, eax
je 0x5ab9eb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x234
mov ecx, 0x6301e0
call fcn.004f1650
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x5aba5c
mov edx, dword [ebp - 0xdc]
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x5aba5c
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0xe0]
lea eax, [esi + 0x920]
push edi
push dword [ebp - 0xe4]
mov ecx, ebx
push eax
call fcn.005ab8e0
test eax, eax
je 0x5aba89
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xe4]
call dword [eax + 0x24]
push 0x613
mov ecx, 0x6301e0
call fcn.004f1650
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x5ababd
mov ecx, dword [ebp - 0xbc]
mov edx, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [edx + 8]
mov eax, dword [ebp - 0xbc]
and eax, 1
mov dword [ebx + 0x1e], eax
mov edi, dword [ebp - 0xc0]
lea eax, [esi + 0x920]
push edi
push dword [ebp - 0xc4]
mov ecx, ebx
push eax
call fcn.005ab8e0
test eax, eax
je 0x5abaea
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xc4]
call dword [eax + 0x24]
push 0x22c
mov ecx, 0x6301e0
call fcn.004f1650
mov edi, dword [ebp - 0xb0]
mov esi, eax
push edi
push dword [ebp - 0xb4]
lea ecx, [esi + 0x920]
push ecx
mov ecx, ebx
call fcn.005ab8e0
test eax, eax
je 0x5abb28
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xb4]
call dword [eax + 0x24]
cvttss2si eax, dword [esi + 0x8e4]
cmp eax, 0x3d1
jne 0x5abb57
cvttss2si eax, dword [esi + 0x8e8]
cmp eax, 0xbb
jne 0x5abb57
mov eax, dword [esi]
mov ecx, esi
push 0xd1
push 0x3d1
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5abba0
mov ecx, dword [ebp - 0xac]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x5abb80
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xac]
test cl, 4
je 0x5abb89
push 1
jmp 0x5abb99
test cl, 8
je 0x5abb92
push 2
jmp 0x5abb99
test cl, 0x10
je 0x5abba0
push 3
mov ecx, esi
call fcn.00576f70
push 0xe4
mov ecx, 0x6301e0
call fcn.004f1650
cmp dword [ebx + 0x1a], 0
mov esi, eax
mov edx, dword [ebp - 0x9c]
je 0x5abbdb
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x5abbdb
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edx, dword [ebp - 0x9c]
and edx, 2
mov ecx, esi
push edx
call fcn.005274b0
mov edi, dword [ebp - 0xa0]
lea eax, [esi + 0x920]
push edi
push dword [ebp - 0xa4]
mov ecx, ebx
push eax
call fcn.005ab8e0
test eax, eax
je 0x5abc13
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xa4]
call dword [eax + 0x24]
cvttss2si eax, dword [esi + 0x8e4]
cmp eax, 0x1d0
jne 0x5abc42
cvttss2si eax, dword [esi + 0x8e8]
cmp eax, 0x2d6
jne 0x5abc42
mov eax, dword [esi]
mov ecx, esi
push 0x2d6
push 0x1a6
call dword [eax + 0x24]
push 0x153
mov ecx, 0x6301e0
call fcn.004f1650
mov esi, dword [ebp - 0x90]
mov edi, eax
push esi
push dword [ebp - 0x94]
lea ecx, [edi + 0x920]
push ecx
mov ecx, ebx
call fcn.005ab8e0
test eax, eax
je 0x5abc80
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [ebp - 0x94]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5abd31
mov ecx, dword [ebp - 0x8c]
xor eax, eax
cmp dword [edi + 0xe], ecx
setne al
test al, 1
je 0x5abcad
mov eax, dword [edi]
and ecx, 1
push ecx
mov ecx, edi
call dword [eax + 8]
mov ecx, dword [ebp - 0x8c]
test cl, 4
je 0x5abcb6
push 1
jmp 0x5abcc6
test cl, 8
je 0x5abcbf
push 2
jmp 0x5abcc6
test cl, 0x10
je 0x5abccd
push 4
mov ecx, edi
call fcn.004755a0
mov eax, dword [ebp - 0x88]
mov ecx, edi
mov dword [ebp - 0xe8], eax
call fcn.00474c30
movzx esi, al
mov eax, dword [ebp - 0xe8]
cmp eax, esi
je 0x5abd1c
lea ecx, [ecx]
mov ecx, edi
push 0x40
push 0
cmp eax, esi
jle 0x5abd07
push 0x163
call fcn.004751a0
inc esi
jmp 0x5abd12
push 0x164
call fcn.004751a0
dec esi
mov eax, dword [ebp - 0xe8]
cmp esi, eax
jne 0x5abcf0
test dword [ebp - 0x8c], 0x100
jne 0x5abd31
push 0
mov ecx, edi
call fcn.00475990
push 0x790
mov ecx, 0x6301e0
call fcn.004f1650
test eax, eax
je 0x5abd5e
cmp dword [ebx + 0x1a], 0
je 0x5abd5e
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax]
and ecx, 0x100
push ecx
mov ecx, eax
call dword [edx + 8]
push 0xea
mov ecx, 0x6301e0
call fcn.004f1650
mov edi, dword [ebp - 0x80]
mov esi, eax
push edi
push dword [ebp - 0x84]
lea ecx, [esi + 0x920]
push ecx
mov ecx, ebx
call fcn.005ab8e0
test eax, eax
je 0x5abd99
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x84]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5abddc
mov ecx, dword [ebp - 0x7c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x5abdbc
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x7c]
test cl, 4
je 0x5abdc5
push 1
jmp 0x5abdd5
test cl, 8
je 0x5abdce
push 2
jmp 0x5abdd5
test cl, 0x10
je 0x5abddc
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x5f
mov ecx, 0x6301e0
call fcn.004f1650
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x5abe0b
mov edx, dword [ebp - 0x6c]
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x5abe0b
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0x70]
lea eax, [esi + 0x920]
push edi
push dword [ebp - 0x74]
mov ecx, ebx
push eax
call fcn.005ab8e0
test eax, eax
je 0x5abe2f
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x74]
call dword [eax + 0x24]
push 0xbe
mov ecx, 0x6301e0
call fcn.004f1650
mov edi, dword [ebp - 0x60]
mov esi, eax
push edi
push dword [ebp - 0x64]
lea ecx, [esi + 0x920]
push ecx
mov ecx, ebx
call fcn.005ab8e0
test eax, eax
je 0x5abe64
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x64]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5abec8
mov ecx, dword [esi + 0x944]
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x9c6], eax
xor eax, eax
mov ecx, dword [ebp - 0x5c]
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x5abe96
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x5c]
test cl, 4
je 0x5abec8
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x68]
mov eax, dword [ebp - 0x5c]
test al, 0x20
je 0x5abeaf
push 1
jmp 0x5abebd
test al, 0x40
je 0x5abeb7
push 2
jmp 0x5abebd
test al, al
jns 0x5abec8
push 3
mov ecx, dword [0x71360c]
mov eax, dword [ecx]
call dword [eax + 0x68]
push 0x4a9
mov ecx, 0x6301e0
call fcn.004f1650
mov edi, dword [ebp - 0x50]
mov esi, eax
push edi
push dword [ebp - 0x54]
lea ecx, [esi + 0x920]
push ecx
mov ecx, ebx
call fcn.005ab8e0
test eax, eax
je 0x5abefd
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x54]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5abf40
mov ecx, dword [ebp - 0x4c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x5abf20
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0x4c]
test cl, 4
je 0x5abf29
push 1
jmp 0x5abf39
test cl, 8
je 0x5abf32
push 2
jmp 0x5abf39
test cl, 0x10
je 0x5abf40
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x6bc
mov ecx, 0x6301e0
call fcn.004f1650
mov edi, dword [ebp - 0x40]
mov esi, eax
push edi
push dword [ebp - 0x44]
lea ecx, [esi + 0x920]
push ecx
mov ecx, ebx
call fcn.005ab8e0
test eax, eax
je 0x5abf75
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x44]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5abf95
mov ecx, dword [ebp - 0x3c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x5abf95
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x64e
mov ecx, 0x6301e0
call fcn.004f1650
mov esi, eax
test esi, esi
je 0x5abfee
mov edi, dword [ebp - 0x30]
lea ecx, [esi + 0x920]
push edi
push dword [ebp - 0x34]
push ecx
mov ecx, ebx
call fcn.005ab8e0
test eax, eax
je 0x5abfce
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x34]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5abfee
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x5abfee
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x265
mov ecx, 0x6301e0
call fcn.004f1650
mov edi, dword [ebp - 0x20]
mov esi, eax
push edi
push dword [ebp - 0x24]
lea ecx, [esi + 0x920]
push ecx
mov ecx, ebx
call fcn.005ab8e0
test eax, eax
je 0x5ac023
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5ac055
test byte [ebp - 0x1c], 1
mov ecx, 0x7136ac
je 0x5ac038
push 0
jmp 0x5ac03a
push 1
call fcn.0055bc40
test byte [ebp - 0x18], 1
mov ecx, 0x7136ac
je 0x5ac04e
push 0
jmp 0x5ac050
push 1
call fcn.0055bc20
mov edi, dword [ebp - 8]
mov ecx, 0x6301e0
test edi, edi
jne 0x5ac068
push 0x854
jmp 0x5ac06d
push 0x867
call fcn.004f1650
mov esi, eax
test esi, esi
je 0x5ac0a3
push dword [ebp - 0x10]
lea eax, [esi + 0x920]
mov ecx, ebx
push dword [ebp - 0x14]
push eax
call fcn.005ab8e0
test eax, eax
je 0x5ac09d
push dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x14]
call dword [eax + 0x24]
mov dword [0x7196c8], edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005b6a74
mov esp, ebp
pop ebp
ret 4