Function at 0x473b22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6ccd44]
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 0x718090
or edx, 0xffffffff
mov dword [ebp - 0x4c], eax
call fcn.00487cbf
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0xc
test eax, eax
jne 0x473bc7
push edi
push 0x718098
push 0x118
push 0x750000
call fcn.0040117f
push edi
push str._s.exe
push 0x1000
push 0x72f000
mov esi, eax
call fcn.0040117f
add esp, 0x20
push 0x1000
push 0x72c000
push 0xffffffffffffffff
push 0x72f000
push 0
push 0xfde9
call ebx
push 0x7180a4
lea eax, [ebp - 0x3c]
push 0x72c000
push eax
call fcn.005e1090
add esp, 0xc
jmp 0x473c0c
push ecx
push 0x7180ac
or edx, 0xffffffff
mov ecx, edi
call fcn.00487dc6
pop ecx
pop ecx
test eax, eax
jle 0x473be8
inc eax
add eax, edi
push eax
push 0x7180b0
jmp 0x473bee
push edi
push 0x7180b4
push 0x118
push 0x750000
call fcn.0040117f
mov esi, eax
add esp, 0x10
mov byte [esi + 0x74fffc], 0x5f
sub esi, 3
lea edx, [ebp - 0x38]
mov ecx, edi
call fcn.00403911
test eax, eax
jne 0x473c42
lea eax, [esi + 0x750000]
push eax
push 0x30
pop edx
lea ecx, [ebp - 0x38]
call fcn.0047f7e9
push 5
pop edx
push edx
push str..exe
lea ecx, [esi + 0x750010]
call section..text
pop ecx
pop ecx
push 0x1000
push 0x72c000
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call ebx
push 0x7180c0
lea eax, [ebp - 0x3c]
push 0x72c000
push eax
call fcn.005e1090
add esp, 0xc
cmp dword [ebp - 0x3c], 0
je 0x473e66
push 0x10
lea eax, [esi + 0x750000]
mov ecx, 0x72a2f4
push eax
push 0x11
pop edx
mov dword [0x72a31c], ecx
call section..text
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x3c]
call fcn.005e2940
add esp, 0x14
xor edi, edi
inc edi
mov esi, 0x72f000
push dword [ebp - 0x3c]
push 2
push edi
push esi
call fcn.005eac90
movzx eax, word [0x72f000]
add esp, 0x10
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x473e5d
push ebx
push 0x3c
push dword [ebp - 0x3c]
call fcn.005e2940
add esp, 0xc
push dword [ebp - 0x3c]
push 4
push edi
push esi
call fcn.005eac90
push ebx
push dword [0x72f000]
push dword [ebp - 0x3c]
call fcn.005e2940
add esp, 0x1c
push dword [ebp - 0x3c]
push 0x18
push edi
push esi
call fcn.005eac90
add esp, 0x10
cmp dword [0x72f000], 0x4550
jne 0x473e5d
movzx esi, word [0x72f014]
lea eax, [esi + 0x24]
call fcn.005b4450
mov ecx, esp
mov edx, esi
push edi
push 4
call fcn.004811d1
mov esi, eax
pop ecx
pop ecx
cmp dword [esi - 0x10], 4
lea eax, [esi + 4]
mov dword [esi], eax
push dword [ebp - 0x3c]
jae 0x473d59
call fcn.005e1d40
pop ecx
jmp 0x473e76
push dword [esi - 0x10]
push edi
push esi
call fcn.005eac90
movzx eax, word [esi]
add esp, 0x10
cmp eax, 0x10b
je 0x473d91
cmp eax, 0x20b
jne 0x473d9a
cmp dword [esi - 0x10], 0x94
jb 0x473d9a
mov eax, dword [esi + 0x90]
test eax, eax
je 0x473da7
push ebx
add eax, 0xfffffff0
push eax
jmp 0x473dab
cmp dword [esi - 0x10], 0x84
jae 0x473d9f
push dword [ebp - 0x3c]
jmp 0x473d4e
mov eax, dword [esi + 0x80]
jmp 0x473d86
push 2
push 0xfffffffffffffff0
push dword [ebp - 0x3c]
call fcn.005e2940
add esp, 0xc
mov esi, 0x72f000
push dword [ebp - 0x3c]
push 0x10
push edi
push esi
call fcn.005eac90
add esp, 0x10
mov eax, 0x730000
mov ecx, str.B996015880544A19B7F7E9BE44914C18
push eax
push 0x20
pop edx
call fcn.0047f941
mov ecx, ebx
mov edx, 0x730000
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x473e5d
inc ecx
cmp ecx, 4
jne 0x473de4
push edi
push 0xffffffffffffffec
push dword [ebp - 0x3c]
call fcn.005e2940
add esp, 0xc
lea eax, [ebp - 0x40]
push dword [ebp - 0x3c]
push 4
push edi
push eax
call fcn.005eac90
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.005e2940
mov ecx, dword [ebp - 0x40]
add esp, 0xc
xor edx, edx
push ebx
push ebx
lea ecx, [ecx + 1]
call fcn.004814a9
push dword [ebp - 0x3c]
mov ebx, eax
push dword [ebp - 0x40]
mov dword [ebp - 0x44], ebx
push edi
push ebx
call fcn.005eac90
mov ecx, dword [ebp - 0x40]
add esp, 0x18
mov byte [ecx + ebx], 0
push dword [ebp - 0x3c]
call fcn.005e1d40
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.005b35b0
mov esp, ebp
pop ebp
ret