Function at 0x57b570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x695e80]
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 0x57bc94
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 0x57b5da
cmp dword [ebp - 0xec], 0x6111101
je 0x57b5f4
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.00585d34
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 0x57b5db
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x217
mov ecx, 0x5f08b0
call fcn.004c13f0
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x57b64c
mov edx, dword [ebp - 0xdc]
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x57b64c
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0xe0]
lea eax, [esi + 0x940]
push edi
push dword [ebp - 0xe4]
mov ecx, ebx
push eax
call fcn.0057b4d0
test eax, eax
je 0x57b679
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xe4]
call dword [eax + 0x24]
push 0x6da
mov ecx, 0x5f08b0
call fcn.004c13f0
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x57b6ad
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 + 0x940]
push edi
push dword [ebp - 0xc4]
mov ecx, ebx
push eax
call fcn.0057b4d0
test eax, eax
je 0x57b6da
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xc4]
call dword [eax + 0x24]
push 0x20f
mov ecx, 0x5f08b0
call fcn.004c13f0
mov edi, dword [ebp - 0xb0]
mov esi, eax
push edi
push dword [ebp - 0xb4]
lea ecx, [esi + 0x940]
push ecx
mov ecx, ebx
call fcn.0057b4d0
test eax, eax
je 0x57b718
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xb4]
call dword [eax + 0x24]
cvttss2si eax, dword [esi + 0x904]
cmp eax, 0x3d1
jne 0x57b747
cvttss2si eax, dword [esi + 0x908]
cmp eax, 0xbb
jne 0x57b747
mov eax, dword [esi]
mov ecx, esi
push 0xd1
push 0x3d1
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57b790
mov ecx, dword [ebp - 0xac]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x57b770
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 0x57b779
push 1
jmp 0x57b789
test cl, 8
je 0x57b782
push 2
jmp 0x57b789
test cl, 0x10
je 0x57b790
push 3
mov ecx, esi
call fcn.00546680
push 0xdd
mov ecx, 0x5f08b0
call fcn.004c13f0
cmp dword [ebx + 0x1a], 0
mov esi, eax
mov edx, dword [ebp - 0x9c]
je 0x57b7cb
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x57b7cb
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.004f4cf0
mov edi, dword [ebp - 0xa0]
lea eax, [esi + 0x940]
push edi
push dword [ebp - 0xa4]
mov ecx, ebx
push eax
call fcn.0057b4d0
test eax, eax
je 0x57b803
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xa4]
call dword [eax + 0x24]
cvttss2si eax, dword [esi + 0x904]
cmp eax, 0x1d0
jne 0x57b832
cvttss2si eax, dword [esi + 0x908]
cmp eax, 0x2d6
jne 0x57b832
mov eax, dword [esi]
mov ecx, esi
push 0x2d6
push 0x1a6
call dword [eax + 0x24]
push 0x136
mov ecx, 0x5f08b0
call fcn.004c13f0
mov esi, dword [ebp - 0x90]
mov edi, eax
push esi
push dword [ebp - 0x94]
lea ecx, [edi + 0x940]
push ecx
mov ecx, ebx
call fcn.0057b4d0
test eax, eax
je 0x57b870
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [ebp - 0x94]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57b921
mov ecx, dword [ebp - 0x8c]
xor eax, eax
cmp dword [edi + 0xe], ecx
setne al
test al, 1
je 0x57b89d
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 0x57b8a6
push 1
jmp 0x57b8b6
test cl, 8
je 0x57b8af
push 2
jmp 0x57b8b6
test cl, 0x10
je 0x57b8bd
push 4
mov ecx, edi
call fcn.00448d90
mov eax, dword [ebp - 0x88]
mov ecx, edi
mov dword [ebp - 0xe8], eax
call fcn.00448420
movzx esi, al
mov eax, dword [ebp - 0xe8]
cmp eax, esi
je 0x57b90c
lea ecx, [ecx]
mov ecx, edi
push 0x40
push 0
cmp eax, esi
jle 0x57b8f7
push 0x146
call fcn.00448990
inc esi
jmp 0x57b902
push 0x147
call fcn.00448990
dec esi
mov eax, dword [ebp - 0xe8]
cmp esi, eax
jne 0x57b8e0
test dword [ebp - 0x8c], 0x100
jne 0x57b921
push 0
mov ecx, edi
call fcn.00449180
push 0x857
mov ecx, 0x5f08b0
call fcn.004c13f0
test eax, eax
je 0x57b94e
cmp dword [ebx + 0x1a], 0
je 0x57b94e
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax]
and ecx, 0x100
push ecx
mov ecx, eax
call dword [edx + 8]
push 0xe3
mov ecx, 0x5f08b0
call fcn.004c13f0
mov edi, dword [ebp - 0x80]
mov esi, eax
push edi
push dword [ebp - 0x84]
lea ecx, [esi + 0x940]
push ecx
mov ecx, ebx
call fcn.0057b4d0
test eax, eax
je 0x57b989
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x84]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57b9cc
mov ecx, dword [ebp - 0x7c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x57b9ac
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 0x57b9b5
push 1
jmp 0x57b9c5
test cl, 8
je 0x57b9be
push 2
jmp 0x57b9c5
test cl, 0x10
je 0x57b9cc
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x5f
mov ecx, 0x5f08b0
call fcn.004c13f0
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x57b9fb
mov edx, dword [ebp - 0x6c]
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x57b9fb
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0x70]
lea eax, [esi + 0x940]
push edi
push dword [ebp - 0x74]
mov ecx, ebx
push eax
call fcn.0057b4d0
test eax, eax
je 0x57ba1f
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x74]
call dword [eax + 0x24]
push 0xb7
mov ecx, 0x5f08b0
call fcn.004c13f0
mov edi, dword [ebp - 0x60]
mov esi, eax
push edi
push dword [ebp - 0x64]
lea ecx, [esi + 0x940]
push ecx
mov ecx, ebx
call fcn.0057b4d0
test eax, eax
je 0x57ba54
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x64]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57bab8
mov ecx, dword [esi + 0x964]
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x9e6], eax
xor eax, eax
mov ecx, dword [ebp - 0x5c]
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x57ba86
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 0x57bab8
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x68]
mov eax, dword [ebp - 0x5c]
test al, 0x20
je 0x57ba9f
push 1
jmp 0x57baad
test al, 0x40
je 0x57baa7
push 2
jmp 0x57baad
test al, al
jns 0x57bab8
push 3
mov ecx, dword [0x6c4a5c]
mov eax, dword [ecx]
call dword [eax + 0x68]
push 0x58b
mov ecx, 0x5f08b0
call fcn.004c13f0
mov edi, dword [ebp - 0x50]
mov esi, eax
push edi
push dword [ebp - 0x54]
lea ecx, [esi + 0x940]
push ecx
mov ecx, ebx
call fcn.0057b4d0
test eax, eax
je 0x57baed
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x54]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57bb30
mov ecx, dword [ebp - 0x4c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x57bb10
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 0x57bb19
push 1
jmp 0x57bb29
test cl, 8
je 0x57bb22
push 2
jmp 0x57bb29
test cl, 0x10
je 0x57bb30
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x782
mov ecx, 0x5f08b0
call fcn.004c13f0
mov edi, dword [ebp - 0x40]
mov esi, eax
push edi
push dword [ebp - 0x44]
lea ecx, [esi + 0x940]
push ecx
mov ecx, ebx
call fcn.0057b4d0
test eax, eax
je 0x57bb65
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x44]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57bb85
mov ecx, dword [ebp - 0x3c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x57bb85
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x714
mov ecx, 0x5f08b0
call fcn.004c13f0
mov esi, eax
test esi, esi
je 0x57bbde
mov edi, dword [ebp - 0x30]
lea ecx, [esi + 0x940]
push edi
push dword [ebp - 0x34]
push ecx
mov ecx, ebx
call fcn.0057b4d0
test eax, eax
je 0x57bbbe
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x34]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57bbde
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x57bbde
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x248
mov ecx, 0x5f08b0
call fcn.004c13f0
mov edi, dword [ebp - 0x20]
mov esi, eax
push edi
push dword [ebp - 0x24]
lea ecx, [esi + 0x940]
push ecx
mov ecx, ebx
call fcn.0057b4d0
test eax, eax
je 0x57bc13
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57bc45
test byte [ebp - 0x1c], 1
mov ecx, 0x6c4af8
je 0x57bc28
push 0
jmp 0x57bc2a
push 1
call fcn.0052a920
test byte [ebp - 0x18], 1
mov ecx, 0x6c4af8
je 0x57bc3e
push 0
jmp 0x57bc40
push 1
call fcn.0052a900
mov edi, dword [ebp - 8]
mov ecx, 0x5f08b0
test edi, edi
jne 0x57bc58
push 0x91b
jmp 0x57bc5d
push 0x92e
call fcn.004c13f0
mov esi, eax
test esi, esi
je 0x57bc93
push dword [ebp - 0x10]
lea eax, [esi + 0x940]
mov ecx, ebx
push dword [ebp - 0x14]
push eax
call fcn.0057b4d0
test eax, eax
je 0x57bc8d
push dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x14]
call dword [eax + 0x24]
mov dword [0x6caee0], edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00585d34
mov esp, ebp
pop ebp
ret 4