Function at 0x45f9f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6b0d44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
push ebx
push esi
push edi
push 1
mov dword [ebp - 0x48], edx
mov edi, ecx
push 4
push 0x759270
or edx, 0xffffffff
mov dword [ebp - 0x4c], eax
call fcn.00470951
add esp, 0xc
test eax, eax
jne 0x45fa77
push edi
push 0x759278
push 0x118
mov ebx, 0x78d080
push ebx
call fcn.0040112a
push edi
push str._s.exe
push 0x1000
push 0x76c080
mov esi, eax
call fcn.0040112a
push 0x759284
lea eax, [ebp - 0x3c]
push 0x76c080
push eax
call fcn.005cad70
add esp, 0x2c
jmp 0x45fabd
push ecx
push 0x759288
or edx, 0xffffffff
mov ecx, edi
call fcn.00470a43
mov ebx, 0x78d080
pop ecx
pop ecx
test eax, eax
jle 0x45fa9d
inc eax
add eax, edi
push eax
push 0x75928c
jmp 0x45faa3
push edi
push 0x759290
push 0x118
push ebx
call fcn.0040112a
mov esi, eax
add esp, 0x10
mov byte [esi + 0x78d07c], 0x5f
sub esi, 3
lea edx, [ebp - 0x38]
mov ecx, edi
call fcn.00403135
test eax, eax
jne 0x45faf3
lea eax, [esi + 0x78d080]
push eax
push 0x30
pop edx
lea ecx, [ebp - 0x38]
call fcn.0046a7a9
push 5
pop edx
push edx
push str..exe
lea ecx, [esi + 0x78d090]
call section..text
pop ecx
pop ecx
push 0x75929c
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.005cad70
add esp, 0xc
cmp dword [ebp - 0x3c], 0
je 0x45fccb
mov dword [0x76a580], ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x3c]
call fcn.005ad120
add esp, 0xc
xor edi, edi
inc edi
mov esi, 0x76c080
push dword [ebp - 0x3c]
push 2
push edi
push esi
call fcn.005d0dc0
movzx eax, word [0x76c080]
add esp, 0x10
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x45fcc2
push ebx
push 0x3c
push dword [ebp - 0x3c]
call fcn.005ad120
add esp, 0xc
push dword [ebp - 0x3c]
push 4
push edi
push esi
call fcn.005d0dc0
push ebx
push dword [0x76c080]
push dword [ebp - 0x3c]
call fcn.005ad120
add esp, 0x1c
push dword [ebp - 0x3c]
push 0x18
push edi
push esi
call fcn.005d0dc0
add esp, 0x10
cmp dword [0x76c080], 0x4550
jne 0x45fcc2
movzx esi, word [0x76c094]
lea eax, [esi + 0x24]
call fcn.0059c6e0
mov ecx, esp
mov edx, esi
push edi
push 4
call fcn.0046bf0b
mov esi, eax
lea eax, [esi + 4]
mov dword [esi], eax
push dword [ebp - 0x3c]
push dword [esi - 0x10]
push edi
push esi
call fcn.005d0dc0
movzx eax, word [esi]
add esp, 0x18
cmp eax, 0x10b
je 0x45fc04
cmp eax, 0x20b
je 0x45fbf3
push dword [ebp - 0x3c]
call fcn.005ac520
pop ecx
jmp 0x45fcdb
mov eax, dword [esi + 0x90]
test eax, eax
je 0x45fc0c
push ebx
add eax, 0xfffffff0
push eax
jmp 0x45fc10
mov eax, dword [esi + 0x80]
jmp 0x45fbf9
push 2
push 0xfffffffffffffff0
push dword [ebp - 0x3c]
call fcn.005ad120
add esp, 0xc
mov esi, 0x76c080
push dword [ebp - 0x3c]
push 0x10
push edi
push esi
call fcn.005d0dc0
add esp, 0x10
mov eax, 0x76d080
mov ecx, str.B996015880544A19B7F7E9BE44914C18
push eax
push 0x20
pop edx
call fcn.0046a903
mov ecx, ebx
mov edx, 0x76d080
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x45fcc2
inc ecx
cmp ecx, 4
jne 0x45fc49
push edi
push 0xffffffffffffffec
push dword [ebp - 0x3c]
call fcn.005ad120
add esp, 0xc
lea eax, [ebp - 0x40]
push dword [ebp - 0x3c]
push 4
push edi
push eax
call fcn.005d0dc0
add esp, 0x10
push dword [ebp - 0x40]
call dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov ecx, eax
push 0xfffffffffffffffc
pop eax
sub eax, ecx
mov dword [ebp - 0x40], ecx
push eax
push dword [ebp - 0x3c]
call fcn.005ad120
mov ecx, dword [ebp - 0x40]
add esp, 0xc
xor edx, edx
push ebx
push ebx
lea ecx, [ecx + 1]
call fcn.0046c097
push dword [ebp - 0x3c]
mov ebx, eax
push dword [ebp - 0x40]
mov dword [ebp - 0x44], ebx
push edi
push ebx
call fcn.005d0dc0
mov ecx, dword [ebp - 0x40]
add esp, 0x18
mov byte [ecx + ebx], 0
push dword [ebp - 0x3c]
call fcn.005ac520
pop ecx
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x44]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
mov dword [ecx], eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059b3f0
mov esp, ebp
pop ebp
ret