Function at 0x476ffd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6d1d44]
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 0x7355e0
or edx, 0xffffffff
mov dword [ebp - 0x4c], eax
call fcn.0048bcb7
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0xc
test eax, eax
jne 0x4770a2
push edi
push 0x7355e8
push pe_nt_image_headers32
push 0x772940
call fcn.0040117f
push edi
push str._s.exe
push 0x1000
push 0x751940
mov esi, eax
call fcn.0040117f
add esp, 0x20
push 0x1000
push 0x74e940
push 0xffffffffffffffff
push 0x751940
push 0
push 0xfde9
call ebx
push 0x7355f4
lea eax, [ebp - 0x3c]
push 0x74e940
push eax
call fcn.005e6450
add esp, 0xc
jmp 0x4770e7
push ecx
push 0x7355fc
or edx, 0xffffffff
mov ecx, edi
call fcn.0048bdbe
pop ecx
pop ecx
test eax, eax
jle 0x4770c3
inc eax
add eax, edi
push eax
push 0x735600
jmp 0x4770c9
push edi
push 0x735604
push pe_nt_image_headers32
push 0x772940
call fcn.0040117f
mov esi, eax
add esp, 0x10
mov byte [esi + 0x77293c], 0x5f
sub esi, 3
lea edx, [ebp - 0x38]
mov ecx, edi
call fcn.00403aa7
test eax, eax
jne 0x47711d
lea eax, [esi + 0x772940]
push eax
push 0x30
pop edx
lea ecx, [ebp - 0x38]
call fcn.00483219
push 5
pop edx
push edx
push str..exe
lea ecx, [esi + 0x772950]
call section..text
pop ecx
pop ecx
push 0x1000
push 0x74e940
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call ebx
push 0x735610
lea eax, [ebp - 0x3c]
push 0x74e940
push eax
call fcn.005e6450
add esp, 0xc
cmp dword [ebp - 0x3c], 0
je 0x477341
push 0x10
lea eax, [esi + 0x772940]
mov ecx, 0x74cba8
push eax
push 0x11
pop edx
mov dword [0x74cbd0], ecx
call section..text
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x3c]
call fcn.005e7d00
add esp, 0x14
xor edi, edi
inc edi
mov esi, 0x751940
push dword [ebp - 0x3c]
push 2
push edi
push esi
call fcn.005f08b0
movzx eax, word [0x751940]
add esp, 0x10
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x477338
push ebx
push 0x3c
push dword [ebp - 0x3c]
call fcn.005e7d00
add esp, 0xc
push dword [ebp - 0x3c]
push 4
push edi
push esi
call fcn.005f08b0
push ebx
push dword [0x751940]
push dword [ebp - 0x3c]
call fcn.005e7d00
add esp, 0x1c
push dword [ebp - 0x3c]
push 0x18
push edi
push esi
call fcn.005f08b0
add esp, 0x10
cmp dword [0x751940], 0x4550
jne 0x477338
movzx esi, word [0x751954]
lea eax, [esi + 0x24]
call fcn.005b9800
mov ecx, esp
mov edx, esi
push edi
push 4
call fcn.00484c1e
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 0x477234
call fcn.005e7100
pop ecx
jmp 0x477351
push dword [esi - 0x10]
push edi
push esi
call fcn.005f08b0
movzx eax, word [esi]
add esp, 0x10
cmp eax, 0x10b
je 0x47726c
cmp eax, 0x20b
jne 0x477275
cmp dword [esi - 0x10], 0x94
jb 0x477275
mov eax, dword [esi + 0x90]
test eax, eax
je 0x477282
push ebx
add eax, 0xfffffff0
push eax
jmp 0x477286
cmp dword [esi - 0x10], 0x84
jae 0x47727a
push dword [ebp - 0x3c]
jmp 0x477229
mov eax, dword [esi + 0x80]
jmp 0x477261
push 2
push 0xfffffffffffffff0
push dword [ebp - 0x3c]
call fcn.005e7d00
add esp, 0xc
mov esi, 0x751940
push dword [ebp - 0x3c]
push 0x10
push edi
push esi
call fcn.005f08b0
add esp, 0x10
mov eax, 0x752940
mov ecx, str.B996015880544A19B7F7E9BE44914C18
push eax
push 0x20
pop edx
call fcn.00483371
mov ecx, ebx
mov edx, 0x752940
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x477338
inc ecx
cmp ecx, 4
jne 0x4772bf
push edi
push 0xffffffffffffffec
push dword [ebp - 0x3c]
call fcn.005e7d00
add esp, 0xc
lea eax, [ebp - 0x40]
push dword [ebp - 0x3c]
push 4
push edi
push eax
call fcn.005f08b0
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.005e7d00
mov ecx, dword [ebp - 0x40]
add esp, 0xc
xor edx, edx
push ebx
push ebx
lea ecx, [ecx + 1]
call fcn.00484ef6
push dword [ebp - 0x3c]
mov ebx, eax
push dword [ebp - 0x40]
mov dword [ebp - 0x44], ebx
push edi
push ebx
call fcn.005f08b0
mov ecx, dword [ebp - 0x40]
add esp, 0x18
mov byte [ecx + ebx], 0
push dword [ebp - 0x3c]
call fcn.005e7100
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.005b8900
mov esp, ebp
pop ebp
ret