Function at 0x5a17b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, str.embed
mov esi, eax
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x18], 0
je 0x5a180a
push eax
call fcn.00510370
mov esi, dword [ebp + 8]
add esp, 4
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0
je 0x5a1a4f
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5a18b4
call fcn.00512810
mov dword [esp + 0x18], eax
jmp 0x5a19ed
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x360]
test eax, eax
je 0x5a1a4f
push eax
call fcn.0045d550
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5a18a6
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
mov ecx, dword [esi + 0x354]
je 0x5a184f
cmp dword [eax + 0x18], 0xffffffff
je 0x5a185e
mov edx, dword [eax + 0x1c]
cmp edx, ecx
mov dword [eax + 0x18], ecx
ja 0x5a184a
mov ecx, edx
mov dword [eax + 0x18], ecx
jmp 0x5a185e
mov eax, dword [eax + 4]
push 0
push ecx
push eax
call fcn.006081d8
add esp, 0xc
mov edi, dword [esi]
cmp dword [edi + 0x14], 0
mov eax, dword [esi + 0x360]
je 0x5a1873
call fcn.00410220
jmp 0x5a1887
mov edi, dword [edi + 4]
test edi, edi
je 0x5a1887
push edi
push eax
push 1
push ebx
call fcn.0060860a
add esp, 0x10
mov ecx, dword [esi + 0x360]
push ecx
push ebx
call fcn.005103c0
push ebx
mov dword [esp + 0x20], eax
call fcn.0045da90
add esp, 0xc
jmp 0x5a17e6
push 1
add esi, 0x968ec
push esi
call fcn.0061b7d8
lea ecx, [esp + 0x1c]
call fcn.004070c0
cmp dword [esp + 0x30], 0
jne 0x5a1932
mov edi, dword [esp + 0x20]
test edi, edi
setne al
test al, al
je 0x5a19b4
test edi, edi
je 0x5a18eb
push edi
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.0060860a
add esp, 0x10
push 0
push 0
push edi
call fcn.006081d8
add esp, 0xc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov dword [esp + 0x14], eax
call fcn.0045d550
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esi + 0x368], ebx
je 0x5a18a6
cmp dword [esp + 0x30], 0
je 0x5a196a
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x1c]
call fcn.00410220
jmp 0x5a197f
mov eax, 4
lea ebx, [esp + 0x10]
lea edi, [esp + 0x1c]
call fcn.00410220
cmp dword [esp + 0x30], 0
mov edi, dword [esp + 0x20]
je 0x5a18eb
cmp dword [esp + 0x34], 0xffffffff
je 0x5a18f8
mov ecx, dword [esp + 0x38]
xor eax, eax
cmp eax, ecx
sbb eax, eax
not eax
and eax, ecx
mov dword [esp + 0x34], eax
jmp 0x5a18f8
test edi, edi
je 0x5a197f
mov edx, dword [esp + 0x10]
push edi
push edx
push 1
push ebx
call fcn.0060860a
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x368]
push eax
push ecx
call fcn.005103c0
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
jne 0x5a19b4
mov edx, dword [esi + 0x368]
push edx
call fcn.0045da90
add esp, 4
mov dword [esi + 0x368], 0
lea edi, [esp + 0x3c]
call fcn.00401700
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x3c], 0
je 0x5a19e4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x5a19ed
lea esi, [esp + 0x1c]
call fcn.00457970
mov esi, dword [ebp + 8]
lea ebx, [esp + 0x1c]
call fcn.00486bd0
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x5a1a46
mov eax, dword [esp + 0x14]
push 0x4009a
push 0x4009a
mov edx, ebx
call fcn.0050f320
movzx ecx, word [esi + 0x462]
movzx edx, word [esi + 0x460]
imul ecx, edx
mov edi, eax
mov eax, dword [esi + 0x4d8]
push ecx
push eax
push eax
mov eax, dword [edi + 8]
push edi
call eax
push edi
mov dword [esi + 0x3b4], 1
call fcn.0050e430
add esp, 0x1c
mov esi, ebx
call fcn.00510850
mov esi, dword [esp + 0x14]
call fcn.00510850
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8