Function at 0x58ecb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x6ac30c]
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
mov ebx, ecx
push eax
mov dword [ebp - 0xe8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x58f1c8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 0xec]
push eax
push 4
lea ecx, [ebp - 0xf0]
push ecx
push esi
call edi
test eax, eax
je 0x58ed47
cmp dword [ebp - 0xf0], 0x6111101
jne 0x58ed47
push 0
lea edx, [ebp - 0xec]
push edx
push 4
lea eax, [ebp - 0xf4]
push eax
push esi
call edi
test eax, eax
je 0x58ed47
mov ecx, dword [ebp - 0xf4]
cmp ecx, dword [0x6c5c20]
je 0x58ed61
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.00599821
mov esp, ebp
pop ebp
ret 4
push 0
lea edx, [ebp - 0xec]
push edx
push 0xe0
lea eax, [ebp - 0xe4]
push eax
push esi
call edi
push esi
test eax, eax
je 0x58ed48
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f2
mov ecx, 0x604150
call fcn.004c56f0
cmp dword [ebx + 0x1c], 0
je 0x58edb9
mov ecx, dword [ebp - 0xdc]
xor edx, edx
cmp dword [eax + 0x10], ecx
setne dl
test dl, 1
je 0x58edb9
mov edx, dword [eax]
and ecx, 1
push ecx
mov ecx, eax
mov eax, dword [edx + 8]
call eax
push 0x6ca
mov ecx, 0x604150
call fcn.004c56f0
cmp dword [ebx + 0x1c], 0
je 0x58eded
mov ecx, dword [ebp - 0xbc]
mov edx, dword [eax]
mov edx, dword [edx + 8]
and ecx, 1
push ecx
mov ecx, eax
call edx
mov eax, dword [ebp - 0xbc]
and eax, 1
mov dword [ebx + 0x20], eax
push 0x1ea
mov ecx, 0x604150
call fcn.004c56f0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x58ee47
mov eax, dword [ebp - 0xac]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x58ee2a
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0xac]
test al, 4
je 0x58ee32
push 1
jmp 0x58ee40
test al, 8
je 0x58ee3a
push 2
jmp 0x58ee40
test al, 0x10
je 0x58ee47
push 3
mov ecx, esi
call fcn.005579a0
push 0x110
mov ecx, 0x604150
call fcn.004c56f0
cmp dword [ebx + 0x1c], 0
mov esi, eax
mov eax, dword [ebp - 0x9c]
je 0x58ee84
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x58ee84
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x9c]
and eax, 2
push eax
mov ecx, esi
call fcn.004ff330
push 0x15c
mov ecx, 0x604150
call fcn.004c56f0
cmp dword [ebx + 0x1c], 0
mov esi, eax
je 0x58ef42
mov eax, dword [ebp - 0x8c]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x58eed0
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x8c]
test al, 4
je 0x58eed8
push 1
jmp 0x58eee6
test al, 8
je 0x58eee0
push 2
jmp 0x58eee6
test al, 0x10
je 0x58eeed
push 4
mov ecx, esi
call fcn.00447df0
mov ebx, dword [ebp - 0x88]
mov ecx, esi
call fcn.00447850
movzx edi, al
cmp ebx, edi
je 0x58ef27
push 0x40
mov ecx, esi
push 0
cmp ebx, edi
jle 0x58ef18
push 0x16b
call fcn.00448250
inc edi
jmp 0x58ef23
push 0x16c
call fcn.00448250
dec edi
cmp edi, ebx
jne 0x58ef01
test dword [ebp - 0x8c], 0x100
jne 0x58ef3c
push 0
mov ecx, esi
call fcn.00447870
mov ebx, dword [ebp - 0xe8]
push 0x82f
mov ecx, 0x604150
call fcn.004c56f0
test eax, eax
je 0x58ef71
cmp dword [ebx + 0x1c], 0
je 0x58ef71
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax]
mov edx, dword [edx + 8]
and ecx, 0x100
push ecx
mov ecx, eax
call edx
push 0x11a
mov ecx, 0x604150
call fcn.004c56f0
mov edi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xe8]
push edi
mov esi, eax
push ebx
lea eax, [esi + 0x238]
push eax
call fcn.0058ec40
test eax, eax
je 0x58efae
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
mov edi, dword [ebp - 0xe8]
cmp dword [edi + 0x1c], 0
je 0x58eff9
mov eax, dword [ebp - 0x7c]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x58efda
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x7c]
test al, 4
je 0x58efe2
push 1
jmp 0x58eff0
test al, 8
je 0x58efea
push 2
jmp 0x58eff0
test al, 0x10
je 0x58eff9
push 3
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
push 0x61
mov ecx, 0x604150
call fcn.004c56f0
cmp dword [edi + 0x1c], 0
mov esi, eax
je 0x58f02a
mov eax, dword [ebp - 0x6c]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x58f02a
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x74]
push edi
push ebx
lea ecx, [esi + 0x238]
push ecx
mov ecx, dword [ebp - 0xe8]
call fcn.0058ec40
test eax, eax
je 0x58f053
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
push 0xea
mov ecx, 0x604150
call fcn.004c56f0
mov edi, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x64]
push edi
mov esi, eax
push ebx
lea ecx, [esi + 0x238]
push ecx
mov ecx, dword [ebp - 0xe8]
call fcn.0058ec40
test eax, eax
je 0x58f08d
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push edi
push ebx
mov ecx, esi
call eax
mov edi, dword [ebp - 0xe8]
cmp dword [edi + 0x1c], 0
je 0x58f0fd
mov ecx, dword [esi + 0x25c]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0x2e0], edx
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
cmp dword [esi + 0x10], eax
setne cl
test cl, 1
je 0x58f0c8
mov edx, dword [esi]
and eax, 1
push eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x5c]
test al, 4
je 0x58f0fd
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
push 1
mov ecx, esi
call eax
mov al, byte [ebp - 0x5c]
test al, 0x20
je 0x58f0e2
push 1
jmp 0x58f0f0
test al, 0x40
je 0x58f0ea
push 2
jmp 0x58f0f0
test al, al
jns 0x58f0fd
push 3
mov ecx, dword [0x6d41d4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x68]
call eax
push 0x767
mov ecx, 0x604150
call fcn.004c56f0
cmp dword [edi + 0x1c], 0
je 0x58f12f
mov ecx, dword [ebp - 0x3c]
xor edx, edx
cmp dword [eax + 0x10], ecx
setne dl
test dl, 1
je 0x58f12f
mov edx, dword [eax]
and ecx, 1
push ecx
mov ecx, eax
mov eax, dword [edx + 8]
call eax
push 0x700
mov ecx, 0x604150
call fcn.004c56f0
test eax, eax
je 0x58f15d
cmp dword [edi + 0x1c], 0
je 0x58f15d
mov ecx, dword [ebp - 0x2c]
and ecx, 1
cmp dword [eax + 0x10], ecx
je 0x58f15d
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 8]
call eax
push 0x233
mov ecx, 0x604150
call fcn.004c56f0
cmp dword [edi + 0x1c], 0
je 0x58f19e
test byte [ebp - 0x1c], 1
mov ecx, 0x6d4274
je 0x58f181
push 0
jmp 0x58f183
push 1
call fcn.0053cec0
test byte [ebp - 0x18], 1
mov ecx, 0x6d4274
je 0x58f197
push 0
jmp 0x58f199
push 1
call fcn.0053cee0
mov eax, dword [ebp - 8]
mov esi, eax
mov ecx, 0x604150
test eax, eax
jne 0x58f1b3
push 0x8ec
jmp 0x58f1b8
push 0x901
call fcn.004c56f0
test eax, eax
je 0x58f1c7
mov dword [0x6d9fa0], esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00599821
mov esp, ebp
pop ebp
ret 4