Function at 0x5585c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6092b1
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x888]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x13c
lea ecx, [esp + 0x344]
push ebx
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x348], ebx
call fcn.005dfd60
push ebx
push 0x8000000
push 3
push ebx
push 3
push connect
push esi
xor edi, edi
call fcn.004e0400
mov esi, eax
push esi
mov dword [esp + 0x48], esi
call fcn.004d90d0
add esp, 0x2c
test eax, eax
je 0x5589d1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x44], eax
push 4
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x55899b
jmp 0x558698
mov edi, dword [esp + 0x28]
add edi, eax
mov eax, dword [esp + 0x18]
cmp eax, 0x400
jae 0x55899b
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x488]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x55899b
push 0x50
push ecx
add edi, eax
mov eax, dword [str.__asflk__aasf_.zxdv_asd________k9034509k9____KKmnscmsfmiun__IOPc]
push eax
lea ecx, [esp + 0x488]
push ecx
call fcn.004db750
mov edx, dword [esp + 0x18]
cmp byte [esp + edx + 0x47b], bl
jne 0x55899b
push ebx
lea eax, [esp + 0x18]
push eax
push 0x140
lea ecx, [esp + 0x348]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 0x140
jne 0x55899b
add edi, 0x140
lea eax, [esp + 0x47c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x558744
sub eax, edx
push eax
lea edx, [esp + 0x480]
push edx
lea ecx, [esp + 0x64]
call fcn.004016b0
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00556150
cmp dword [esp + 0x74], 0x10
jb 0x558788
mov edx, dword [esp + 0x60]
push edx
call fcn.005e0d9a
add esp, 4
mov edi, dword [esi + 0x18]
mov eax, dword [esi]
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x558799
cmp esi, eax
je 0x55879e
call fcn.005e1e12
cmp dword [esp + 0x34], edi
jne 0x558924
mov esi, 0xf
lea eax, [esp + 0x47c]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5587c3
sub eax, edx
push eax
lea eax, [esp + 0x480]
push eax
lea ecx, [esp + 0x48]
call fcn.004016b0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x89c], ebx
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
call fcn.00401280
mov ecx, 0x50
lea esi, [esp + 0x33c]
lea edi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x1ec]
mov byte [esp + 0x89c], 1
mov dword [esp + 0x204], 0xf
mov dword [esp + 0x200], ebx
mov byte [esp + 0x1f0], bl
call fcn.00401280
mov ecx, 0x50
lea esi, [esp + 0xa0]
lea edi, [esp + 0x1fc]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1e0]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x898], 2
call fcn.0048c6a0
mov esi, 0x10
cmp dword [esp + 0x1f8], esi
jb 0x5588ac
mov edx, dword [esp + 0x1e4]
push edx
call fcn.005e0d9a
add esp, 4
mov edi, 0xf
mov dword [esp + 0x1f8], edi
mov dword [esp + 0x1f4], ebx
mov byte [esp + 0x1e4], bl
cmp dword [esp + 0x9c], esi
jb 0x5588df
mov eax, dword [esp + 0x88]
push eax
call fcn.005e0d9a
add esp, 4
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov dword [esp + 0x890], 0xffffffff
cmp dword [esp + 0x58], esi
jb 0x558912
mov ecx, dword [esp + 0x44]
push ecx
call fcn.005e0d9a
add esp, 4
inc dword [esp + 0x24]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jmp 0x558952
cmp esi, ebx
jne 0x55898b
call fcn.005e1e12
xor esi, esi
mov edx, dword [esp + 0x34]
cmp edx, dword [esi + 0x18]
jne 0x55893d
call fcn.005e1e12
mov edi, dword [esp + 0x34]
add edi, 0x28
mov ecx, 0x50
lea esi, [esp + 0x33c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x28], eax
je 0x55898f
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
cmp eax, 4
je 0x558694
jmp 0x55899b
mov esi, dword [esi]
jmp 0x55892f
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], ebx
je 0x5589cd
cmp dword [esp + 0x2c], ebx
jne 0x5589cd
mov esi, dword [esp + 0x38]
push ebx
push esi
call fcn.005069c0
add esp, 8
test eax, eax
je 0x5589cd
mov ecx, dword [esp + 0x20]
push esi
push ecx
call fcn.00556290
add esp, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x888]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret