Function at 0x582e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x6a0290]
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 0x583524
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 0x582e6a
cmp dword [ebp - 0xec], 0x6111101
je 0x582e84
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.0058de24
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 0x582e6b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x234
mov ecx, 0x5fad18
call fcn.004c64f0
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x582edc
mov edx, dword [ebp - 0xdc]
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x582edc
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.00582d60
test eax, eax
je 0x582f09
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xe4]
call dword [eax + 0x24]
push 0x618
mov ecx, 0x5fad18
call fcn.004c64f0
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x582f3d
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.00582d60
test eax, eax
je 0x582f6a
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xc4]
call dword [eax + 0x24]
push 0x22c
mov ecx, 0x5fad18
call fcn.004c64f0
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.00582d60
test eax, eax
je 0x582fa8
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 0x582fd7
cvttss2si eax, dword [esi + 0x8e8]
cmp eax, 0xbb
jne 0x582fd7
mov eax, dword [esi]
mov ecx, esi
push 0xd1
push 0x3d1
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x583020
mov ecx, dword [ebp - 0xac]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x583000
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 0x583009
push 1
jmp 0x583019
test cl, 8
je 0x583012
push 2
jmp 0x583019
test cl, 0x10
je 0x583020
push 3
mov ecx, esi
call fcn.0054e460
push 0xe4
mov ecx, 0x5fad18
call fcn.004c64f0
cmp dword [ebx + 0x1a], 0
mov esi, eax
mov edx, dword [ebp - 0x9c]
je 0x58305b
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x58305b
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.004fbed0
mov edi, dword [ebp - 0xa0]
lea eax, [esi + 0x920]
push edi
push dword [ebp - 0xa4]
mov ecx, ebx
push eax
call fcn.00582d60
test eax, eax
je 0x583093
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 0x5830c2
cvttss2si eax, dword [esi + 0x8e8]
cmp eax, 0x2d6
jne 0x5830c2
mov eax, dword [esi]
mov ecx, esi
push 0x2d6
push 0x1a6
call dword [eax + 0x24]
push 0x153
mov ecx, 0x5fad18
call fcn.004c64f0
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.00582d60
test eax, eax
je 0x583100
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [ebp - 0x94]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5831b1
mov ecx, dword [ebp - 0x8c]
xor eax, eax
cmp dword [edi + 0xe], ecx
setne al
test al, 1
je 0x58312d
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 0x583136
push 1
jmp 0x583146
test cl, 8
je 0x58313f
push 2
jmp 0x583146
test cl, 0x10
je 0x58314d
push 4
mov ecx, edi
call fcn.00449ba0
mov eax, dword [ebp - 0x88]
mov ecx, edi
mov dword [ebp - 0xe8], eax
call fcn.00449230
movzx esi, al
mov eax, dword [ebp - 0xe8]
cmp eax, esi
je 0x58319c
lea ecx, [ecx]
mov ecx, edi
push 0x40
push 0
cmp eax, esi
jle 0x583187
push 0x163
call fcn.004497a0
inc esi
jmp 0x583192
push 0x164
call fcn.004497a0
dec esi
mov eax, dword [ebp - 0xe8]
cmp esi, eax
jne 0x583170
test dword [ebp - 0x8c], 0x100
jne 0x5831b1
push 0
mov ecx, edi
call fcn.00449f90
push 0x798
mov ecx, 0x5fad18
call fcn.004c64f0
test eax, eax
je 0x5831de
cmp dword [ebx + 0x1a], 0
je 0x5831de
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, 0x5fad18
call fcn.004c64f0
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.00582d60
test eax, eax
je 0x583219
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x84]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x58325c
mov ecx, dword [ebp - 0x7c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x58323c
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 0x583245
push 1
jmp 0x583255
test cl, 8
je 0x58324e
push 2
jmp 0x583255
test cl, 0x10
je 0x58325c
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x5f
mov ecx, 0x5fad18
call fcn.004c64f0
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x58328b
mov edx, dword [ebp - 0x6c]
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x58328b
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.00582d60
test eax, eax
je 0x5832af
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x74]
call dword [eax + 0x24]
push 0xbe
mov ecx, 0x5fad18
call fcn.004c64f0
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.00582d60
test eax, eax
je 0x5832e4
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x64]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x583348
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 0x583316
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 0x583348
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x68]
mov eax, dword [ebp - 0x5c]
test al, 0x20
je 0x58332f
push 1
jmp 0x58333d
test al, 0x40
je 0x583337
push 2
jmp 0x58333d
test al, al
jns 0x583348
push 3
mov ecx, dword [0x6d228c]
mov eax, dword [ecx]
call dword [eax + 0x68]
push 0x4ac
mov ecx, 0x5fad18
call fcn.004c64f0
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.00582d60
test eax, eax
je 0x58337d
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x54]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5833c0
mov ecx, dword [ebp - 0x4c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x5833a0
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 0x5833a9
push 1
jmp 0x5833b9
test cl, 8
je 0x5833b2
push 2
jmp 0x5833b9
test cl, 0x10
je 0x5833c0
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x6c4
mov ecx, 0x5fad18
call fcn.004c64f0
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.00582d60
test eax, eax
je 0x5833f5
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x44]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x583415
mov ecx, dword [ebp - 0x3c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x583415
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x656
mov ecx, 0x5fad18
call fcn.004c64f0
mov esi, eax
test esi, esi
je 0x58346e
mov edi, dword [ebp - 0x30]
lea ecx, [esi + 0x920]
push edi
push dword [ebp - 0x34]
push ecx
mov ecx, ebx
call fcn.00582d60
test eax, eax
je 0x58344e
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x34]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x58346e
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x58346e
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x265
mov ecx, 0x5fad18
call fcn.004c64f0
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.00582d60
test eax, eax
je 0x5834a3
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5834d5
test byte [ebp - 0x1c], 1
mov ecx, 0x6d232c
je 0x5834b8
push 0
jmp 0x5834ba
push 1
call fcn.005326d0
test byte [ebp - 0x18], 1
mov ecx, 0x6d232c
je 0x5834ce
push 0
jmp 0x5834d0
push 1
call fcn.005326b0
mov edi, dword [ebp - 8]
mov ecx, 0x5fad18
test edi, edi
jne 0x5834e8
push 0x85c
jmp 0x5834ed
push 0x86f
call fcn.004c64f0
mov esi, eax
test esi, esi
je 0x583523
push dword [ebp - 0x10]
lea eax, [esi + 0x920]
mov ecx, ebx
push dword [ebp - 0x14]
push eax
call fcn.00582d60
test eax, eax
je 0x58351d
push dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x14]
call dword [eax + 0x24]
mov dword [0x6d82c0], edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0058de24
mov esp, ebp
pop ebp
ret 4