Function at 0x47961f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6d9d44]
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 0x74d90c
or edx, 0xffffffff
mov dword [ebp - 0x4c], eax
call fcn.0048eb52
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0xc
test eax, eax
jne 0x4796c4
push edi
push 0x74d914
push 0x118
push 0x790260
call fcn.0040117f
push edi
push str._s.exe
push 0x1000
push 0x76f260
mov esi, eax
call fcn.0040117f
add esp, 0x20
push 0x1000
push 0x76c260
push 0xffffffffffffffff
push 0x76f260
push 0
push 0xfde9
call ebx
push 0x74d920
lea eax, [ebp - 0x3c]
push 0x76c260
push eax
call fcn.005ee8a0
add esp, 0xc
jmp 0x479709
push ecx
push 0x74d928
or edx, 0xffffffff
mov ecx, edi
call fcn.0048ec59
pop ecx
pop ecx
test eax, eax
jle 0x4796e5
inc eax
add eax, edi
push eax
push 0x74d92c
jmp 0x4796eb
push edi
push 0x74d930
push 0x118
push 0x790260
call fcn.0040117f
mov esi, eax
add esp, 0x10
mov byte [esi + 0x79025c], 0x5f
sub esi, 3
lea edx, [ebp - 0x38]
mov ecx, edi
call fcn.00403d8e
test eax, eax
jne 0x47973f
lea eax, [esi + 0x790260]
push eax
push 0x30
pop edx
lea ecx, [ebp - 0x38]
call fcn.00485bd0
push 5
pop edx
push edx
push str..exe
lea ecx, [esi + 0x790270]
call section..text
pop ecx
pop ecx
push 0x1000
push 0x76c260
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call ebx
push 0x74d93c
lea eax, [ebp - 0x3c]
push 0x76c260
push eax
call fcn.005ee8a0
add esp, 0xc
cmp dword [ebp - 0x3c], 0
je 0x479963
push 0x10
lea eax, [esi + 0x790260]
mov ecx, 0x76a4c4
push eax
push 0x11
pop edx
mov dword [0x76a4f0], ecx
call section..text
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x3c]
call fcn.005f0150
add esp, 0x14
xor edi, edi
inc edi
mov esi, 0x76f260
push dword [ebp - 0x3c]
push 2
push edi
push esi
call fcn.005f8c70
movzx eax, word [0x76f260]
add esp, 0x10
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x47995a
push ebx
push 0x3c
push dword [ebp - 0x3c]
call fcn.005f0150
add esp, 0xc
push dword [ebp - 0x3c]
push 4
push edi
push esi
call fcn.005f8c70
push ebx
push dword [0x76f260]
push dword [ebp - 0x3c]
call fcn.005f0150
add esp, 0x1c
push dword [ebp - 0x3c]
push 0x18
push edi
push esi
call fcn.005f8c70
add esp, 0x10
cmp dword [0x76f260], 0x4550
jne 0x47995a
movzx esi, word [0x76f274]
lea eax, [esi + 0x24]
call fcn.005c1c50
mov ecx, esp
mov edx, esi
push edi
push 4
call fcn.00487604
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 0x479856
call fcn.005ef550
pop ecx
jmp 0x479973
push dword [esi - 0x10]
push edi
push esi
call fcn.005f8c70
movzx eax, word [esi]
add esp, 0x10
cmp eax, 0x10b
je 0x47988e
cmp eax, 0x20b
jne 0x479897
cmp dword [esi - 0x10], 0x94
jb 0x479897
mov eax, dword [esi + 0x90]
test eax, eax
je 0x4798a4
push ebx
add eax, 0xfffffff0
push eax
jmp 0x4798a8
cmp dword [esi - 0x10], 0x84
jae 0x47989c
push dword [ebp - 0x3c]
jmp 0x47984b
mov eax, dword [esi + 0x80]
jmp 0x479883
push 2
push 0xfffffffffffffff0
push dword [ebp - 0x3c]
call fcn.005f0150
add esp, 0xc
mov esi, 0x76f260
push dword [ebp - 0x3c]
push 0x10
push edi
push esi
call fcn.005f8c70
add esp, 0x10
mov eax, 0x770260
mov ecx, str.B996015880544A19B7F7E9BE44914C18
push eax
push 0x20
pop edx
call fcn.00485d28
mov ecx, ebx
mov edx, 0x770260
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x47995a
inc ecx
cmp ecx, 4
jne 0x4798e1
push edi
push 0xffffffffffffffec
push dword [ebp - 0x3c]
call fcn.005f0150
add esp, 0xc
lea eax, [ebp - 0x40]
push dword [ebp - 0x3c]
push 4
push edi
push eax
call fcn.005f8c70
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.005f0150
mov ecx, dword [ebp - 0x40]
add esp, 0xc
xor edx, edx
push ebx
push ebx
lea ecx, [ecx + 1]
call fcn.004878dc
push dword [ebp - 0x3c]
mov ebx, eax
push dword [ebp - 0x40]
mov dword [ebp - 0x44], ebx
push edi
push ebx
call fcn.005f8c70
mov ecx, dword [ebp - 0x40]
add esp, 0x18
mov byte [ecx + ebx], 0
push dword [ebp - 0x3c]
call fcn.005ef550
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.005c0db0
mov esp, ebp
pop ebp
ret