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

Disassembly:
push 0xffffffffffffffff
push 0x60930c
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6aae14]
xor eax, esp
push eax
lea eax, [esp + 0x860]
mov dword fs:[0], eax
mov eax, dword [esp + 0x870]
mov ecx, dword [esp + 0x87c]
xor ebx, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x874]
xor esi, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
cmp eax, ebx
je 0x558f91
cmp byte [eax], bl
je 0x558f91
push ebx
push 0x8000000
push 3
push ebx
push 3
push connect
push eax
call fcn.004e0400
mov edi, eax
push edi
mov dword [esp + 0x4c], edi
call fcn.004d90d0
add esp, 0x20
test eax, eax
je 0x558f91
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x3c], eax
jmp 0x558abb
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
push 0x207
lea edx, [esp + 0x659]
push ebx
push edx
mov byte [esp + 0x660], bl
call fcn.005dfd60
push 0x103
lea eax, [esp + 0x561]
push ebx
push eax
mov byte [esp + 0x568], bl
call fcn.005dfd60
mov eax, 0xf
add esp, 0x18
mov dword [esp + 0x3e4], eax
mov dword [esp + 0x3e0], ebx
mov byte [esp + 0x3d0], bl
mov dword [esp + 0x400], eax
mov dword [esp + 0x3fc], ebx
mov byte [esp + 0x3ec], bl
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x87c], ebx
mov dword [esp + 0x2c], ebx
call ebp
cmp dword [esp + 0x14], 4
jne 0x558f14
mov eax, dword [esp + 0x18]
add esi, 4
cmp eax, 0x104
jae 0x558f14
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x55c]
push edx
push edi
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x558f14
push 0x50
push ecx
add esi, eax
mov eax, dword [str.__asflk__aasf_.zxdv_asd________k9034509k9____KKmnscmsfmiun__IOPc]
push eax
lea ecx, [esp + 0x55c]
push ecx
call fcn.004db750
mov edx, dword [esp + 0x18]
cmp byte [esp + edx + 0x54f], bl
jne 0x558f14
lea eax, [esp + 0x550]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x558bb4
sub eax, edx
push eax
lea eax, [esp + 0x554]
push eax
lea ecx, [esp + 0x3d4]
call fcn.004016b0
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esp + 0x2c], ebx
call ebp
cmp dword [esp + 0x14], 4
jne 0x558f14
mov eax, dword [esp + 0x18]
cmp eax, 0x208
jae 0x558f14
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x660]
push edx
push edi
add esi, 4
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x558f14
push 0x50
push ecx
add esi, eax
mov eax, dword [str.__asflk__aasf_.zxdv_asd________k9034509k9____KKmnscmsfmiun__IOPc]
push eax
lea ecx, [esp + 0x660]
push ecx
call fcn.004db750
mov edx, dword [esp + 0x18]
cmp byte [esp + edx + 0x653], bl
jne 0x558f14
lea eax, [esp + 0x654]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x558c58
sub eax, edx
push eax
lea eax, [esp + 0x658]
push eax
lea ecx, [esp + 0x3f0]
call fcn.004016b0
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x410]
push edx
push edi
call ebp
cmp dword [esp + 0x14], 4
jne 0x558f14
push ebx
lea eax, [esp + 0x18]
push eax
push 8
lea ecx, [esp + 0x414]
push ecx
push edi
add esi, 4
call ebp
cmp dword [esp + 0x14], 8
jne 0x558f14
push ebx
lea edx, [esp + 0x18]
push edx
push 0x140
lea eax, [esp + 0x41c]
push eax
push edi
add esi, 8
call ebp
cmp dword [esp + 0x14], 0x140
jne 0x558f14
add esi, 0x140
lea eax, [esp + 0x550]
mov dword [esp + 0x20], esi
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 0x558d00
sub eax, edx
push eax
lea ecx, [esp + 0x554]
push ecx
lea ecx, [esp + 0x64]
call fcn.004016b0
mov ecx, dword [esp + 0x24]
mov edi, dword [ecx + 0x18]
mov ebp, dword [ecx]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.005561f0
mov esi, eax
mov eax, dword [esi]
cmp eax, ebx
je 0x558d3f
cmp eax, ebp
je 0x558d44
call fcn.005e1e12
cmp dword [esi + 4], edi
mov esi, 0x10
sete byte [esp + 0x1f]
cmp dword [esp + 0x74], esi
jb 0x558d64
mov ecx, dword [esp + 0x60]
push ecx
call fcn.005e0d9a
add esp, 4
mov ebp, 0xf
cmp byte [esp + 0x1f], bl
je 0x558e44
lea eax, [esp + 0x550]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x558d90
sub eax, edx
push eax
lea edx, [esp + 0x554]
push edx
lea ecx, [esp + 0x48]
call fcn.004016b0
lea eax, [esp + 0x3cc]
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x234]
mov byte [esp + 0x870], 1
call fcn.005566a0
push eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x86c], 2
call fcn.005565c0
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x870], 3
call fcn.00557ef0
lea ecx, [esp + 0x8c]
call fcn.005560e0
lea ecx, [esp + 0x22c]
call fcn.005560e0
mov byte [esp + 0x868], bl
cmp dword [esp + 0x58], esi
jb 0x558e34
mov ecx, dword [esp + 0x44]
push ecx
call fcn.005e0d9a
add esp, 4
inc dword [esp + 0x28]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
cmp dword [esp + 0x880], ebx
je 0x558eba
lea edx, [esp + 0x3e8]
push edx
mov ecx, 0x760094
call fcn.00558430
push 0xffffffffffffffff
mov esi, eax
push ebx
lea eax, [esp + 0x3d4]
push eax
mov ecx, esi
call fcn.00401280
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3f0]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00401280
mov edx, dword [esp + 0x404]
mov dword [esi + 0x38], edx
mov eax, dword [esp + 0x408]
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x40c]
mov dword [esi + 0x40], ecx
lea edi, [esi + 0x44]
mov ecx, 0x50
lea esi, [esp + 0x410]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x10
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x20], edx
je 0x558f2d
cmp dword [esp + 0x400], esi
jb 0x558edd
mov eax, dword [esp + 0x3ec]
push eax
call fcn.005e0d9a
add esp, 4
mov dword [esp + 0x400], ebp
mov dword [esp + 0x3fc], ebx
mov byte [esp + 0x3ec], bl
cmp dword [esp + 0x3e4], esi
jb 0x558ab3
mov ecx, dword [esp + 0x3d0]
push ecx
call fcn.005e0d9a
add esp, 4
jmp 0x558ab3
lea ecx, [esp + 0x3cc]
mov dword [esp + 0x868], 0xffffffff
call fcn.00556090
jmp 0x558f50
lea ecx, [esp + 0x3cc]
mov dword [esp + 0x30], 1
mov dword [esp + 0x868], 0xffffffff
call fcn.00556090
mov edi, dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x878], ebx
je 0x558f8b
cmp dword [esp + 0x30], ebx
jne 0x558f8b
mov esi, dword [esp + 0x34]
push ebx
push esi
call fcn.005069c0
add esp, 8
test eax, eax
je 0x558f8b
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
push edx
push esi
push eax
call fcn.00556370
add esp, 0xc
mov eax, dword [esp + 0x28]
jmp 0x558f93
xor eax, eax
mov ecx, dword [esp + 0x860]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x858
ret