Function at 0x574ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0xa37210]
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 0x575644
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xec]
push 0
push eax
push 4
lea eax, [ebp - 0xf0]
push eax
push esi
call edi
test eax, eax
je 0x574f88
cmp dword [ebp - 0xf0], 0x6111101
jne 0x574f88
push 0
lea eax, [ebp - 0xec]
push eax
push 4
lea eax, [ebp - 0xf4]
push eax
push esi
call edi
test eax, eax
je 0x574f88
xor eax, eax
cmp dword [0xa585e8], eax
sete al
mov dword [ebp - 0xf4], eax
test eax, eax
je 0x574fa2
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.0057b964
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp - 0xec]
push eax
push 0xe0
lea eax, [ebp - 0xe4]
push eax
push esi
call edi
push esi
test eax, eax
je 0x574f89
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1fb
mov ecx, 0x80f0c0
call fcn.004bcb00
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x574ffa
mov edx, dword [ebp - 0xdc]
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x574ffa
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0xe0]
lea eax, [esi + 0x86a]
push edi
push dword [ebp - 0xe4]
mov ecx, ebx
push eax
call fcn.00574e50
test eax, eax
je 0x575027
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xe4]
call dword [eax + 0x24]
push 0x57d
mov ecx, 0x80f0c0
call fcn.004bcb00
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x57505b
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 + 0x86a]
push edi
push dword [ebp - 0xc4]
mov ecx, ebx
push eax
call fcn.00574e50
test eax, eax
je 0x575088
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xc4]
call dword [eax + 0x24]
push 0x1f3
mov ecx, 0x80f0c0
call fcn.004bcb00
mov edi, dword [ebp - 0xb0]
mov esi, eax
push edi
push dword [ebp - 0xb4]
lea ecx, [esi + 0x86a]
push ecx
mov ecx, ebx
call fcn.00574e50
test eax, eax
je 0x5750c6
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xb4]
call dword [eax + 0x24]
cvttss2si eax, dword [esi + 0x81c]
cmp eax, 0x3d1
jne 0x5750f5
cvttss2si eax, dword [esi + 0x820]
cmp eax, 0xbb
jne 0x5750f5
mov eax, dword [esi]
mov ecx, esi
push 0xd1
push 0x3d1
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57513e
mov ecx, dword [ebp - 0xac]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x57511e
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 0x575127
push 1
jmp 0x575137
test cl, 8
je 0x575130
push 2
jmp 0x575137
test cl, 0x10
je 0x57513e
push 3
mov ecx, esi
call fcn.0053fe00
push 0xe0
mov ecx, 0x80f0c0
call fcn.004bcb00
cmp dword [ebx + 0x1a], 0
mov esi, eax
mov edx, dword [ebp - 0x9c]
je 0x575179
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x575179
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.004ee910
mov edi, dword [ebp - 0xa0]
lea eax, [esi + 0x86a]
push edi
push dword [ebp - 0xa4]
mov ecx, ebx
push eax
call fcn.00574e50
test eax, eax
je 0x5751b1
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0xa4]
call dword [eax + 0x24]
cvttss2si eax, dword [esi + 0x81c]
cmp eax, 0x1d0
jne 0x5751e0
cvttss2si eax, dword [esi + 0x820]
cmp eax, 0x2d6
jne 0x5751e0
mov eax, dword [esi]
mov ecx, esi
push 0x2d6
push 0x1a6
call dword [eax + 0x24]
push 0x119
mov ecx, 0x80f0c0
call fcn.004bcb00
mov esi, dword [ebp - 0x90]
mov edi, eax
push esi
push dword [ebp - 0x94]
lea ecx, [edi + 0x86a]
push ecx
mov ecx, ebx
call fcn.00574e50
test eax, eax
je 0x57521e
mov eax, dword [edi]
mov ecx, edi
push esi
push dword [ebp - 0x94]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5752d1
mov ecx, dword [ebp - 0x8c]
xor eax, eax
cmp dword [edi + 0xe], ecx
setne al
test al, 1
je 0x57524b
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 0x575254
push 1
jmp 0x575264
test cl, 8
je 0x57525d
push 2
jmp 0x575264
test cl, 0x10
je 0x57526b
push 4
mov ecx, edi
call fcn.00447620
mov eax, dword [ebp - 0x88]
mov ecx, edi
mov dword [ebp - 0xe8], eax
call fcn.00446ce0
movzx esi, al
mov eax, dword [ebp - 0xe8]
cmp eax, esi
je 0x5752bc
jmp 0x575290
mov ecx, edi
push 0x40
push 0
cmp eax, esi
jle 0x5752a7
push 0x129
call fcn.00447280
inc esi
jmp 0x5752b2
push 0x12a
call fcn.00447280
dec esi
mov eax, dword [ebp - 0xe8]
cmp esi, eax
jne 0x575290
test dword [ebp - 0x8c], 0x100
jne 0x5752d1
push 0
mov ecx, edi
call fcn.00447a20
push 0x6f9
mov ecx, 0x80f0c0
call fcn.004bcb00
test eax, eax
je 0x5752fe
cmp dword [ebx + 0x1a], 0
je 0x5752fe
mov ecx, dword [ebp - 0x8c]
mov edx, dword [eax]
and ecx, 0x100
push ecx
mov ecx, eax
call dword [edx + 8]
push 0xe6
mov ecx, 0x80f0c0
call fcn.004bcb00
mov edi, dword [ebp - 0x80]
mov esi, eax
push edi
push dword [ebp - 0x84]
lea ecx, [esi + 0x86a]
push ecx
mov ecx, ebx
call fcn.00574e50
test eax, eax
je 0x575339
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x84]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57537c
mov ecx, dword [ebp - 0x7c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x57535c
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 0x575365
push 1
jmp 0x575375
test cl, 8
je 0x57536e
push 2
jmp 0x575375
test cl, 0x10
je 0x57537c
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x5e
mov ecx, 0x80f0c0
call fcn.004bcb00
cmp dword [ebx + 0x1a], 0
mov esi, eax
je 0x5753ab
mov edx, dword [ebp - 0x6c]
xor ecx, ecx
cmp dword [esi + 0xe], edx
setne cl
test cl, 1
je 0x5753ab
mov eax, dword [esi]
and edx, 1
push edx
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0x70]
lea eax, [esi + 0x86a]
push edi
push dword [ebp - 0x74]
mov ecx, ebx
push eax
call fcn.00574e50
test eax, eax
je 0x5753cf
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x74]
call dword [eax + 0x24]
push 0xba
mov ecx, 0x80f0c0
call fcn.004bcb00
mov edi, dword [ebp - 0x60]
mov esi, eax
push edi
push dword [ebp - 0x64]
lea ecx, [esi + 0x86a]
push ecx
mov ecx, ebx
call fcn.00574e50
test eax, eax
je 0x575404
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x64]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x575468
mov ecx, dword [esi + 0x88e]
mov eax, dword [ebp - 0x58]
mov dword [ecx + 0x910], eax
xor eax, eax
mov ecx, dword [ebp - 0x5c]
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x575436
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 0x575468
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x68]
mov eax, dword [ebp - 0x5c]
test al, 0x20
je 0x57544f
push 1
jmp 0x57545d
test al, 0x40
je 0x575457
push 2
jmp 0x57545d
test al, al
jns 0x575468
push 3
mov ecx, dword [0xa653e4]
mov eax, dword [ecx]
call dword [eax + 0x68]
push 0x413
mov ecx, 0x80f0c0
call fcn.004bcb00
mov edi, dword [ebp - 0x50]
mov esi, eax
push edi
push dword [ebp - 0x54]
lea ecx, [esi + 0x86a]
push ecx
mov ecx, ebx
call fcn.00574e50
test eax, eax
je 0x57549d
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x54]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5754e0
mov ecx, dword [ebp - 0x4c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x5754c0
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 0x5754c9
push 1
jmp 0x5754d9
test cl, 8
je 0x5754d2
push 2
jmp 0x5754d9
test cl, 0x10
je 0x5754e0
push 3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
push 0x627
mov ecx, 0x80f0c0
call fcn.004bcb00
mov edi, dword [ebp - 0x40]
mov esi, eax
push edi
push dword [ebp - 0x44]
lea ecx, [esi + 0x86a]
push ecx
mov ecx, ebx
call fcn.00574e50
test eax, eax
je 0x575515
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x44]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x575535
mov ecx, dword [ebp - 0x3c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x575535
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x5b9
mov ecx, 0x80f0c0
call fcn.004bcb00
mov esi, eax
test esi, esi
je 0x57558e
mov edi, dword [ebp - 0x30]
lea ecx, [esi + 0x86a]
push edi
push dword [ebp - 0x34]
push ecx
mov ecx, ebx
call fcn.00574e50
test eax, eax
je 0x57556e
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x34]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x57558e
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp dword [esi + 0xe], ecx
setne al
test al, 1
je 0x57558e
mov eax, dword [esi]
and ecx, 1
push ecx
mov ecx, esi
call dword [eax + 8]
push 0x23f
mov ecx, 0x80f0c0
call fcn.004bcb00
mov edi, dword [ebp - 0x20]
mov esi, eax
push edi
push dword [ebp - 0x24]
lea ecx, [esi + 0x86a]
push ecx
mov ecx, ebx
call fcn.00574e50
test eax, eax
je 0x5755c3
mov eax, dword [esi]
mov ecx, esi
push edi
push dword [ebp - 0x24]
call dword [eax + 0x24]
cmp dword [ebx + 0x1a], 0
je 0x5755f5
test byte [ebp - 0x1c], 1
mov ecx, 0xa65488
je 0x5755d8
push 0
jmp 0x5755da
push 1
call fcn.005246a0
test byte [ebp - 0x18], 1
mov ecx, 0xa65488
je 0x5755ee
push 0
jmp 0x5755f0
push 1
call fcn.00524680
mov edi, dword [ebp - 8]
mov ecx, 0x80f0c0
test edi, edi
jne 0x575608
push 0x7aa
jmp 0x57560d
push 0x7bd
call fcn.004bcb00
mov esi, eax
test esi, esi
je 0x575643
push dword [ebp - 0x10]
lea eax, [esi + 0x86a]
mov ecx, ebx
push dword [ebp - 0x14]
push eax
call fcn.00574e50
test eax, eax
je 0x57563d
push dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x14]
call dword [eax + 0x24]
mov dword [0xa6b680], edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0057b964
mov esp, ebp
pop ebp
ret 4