Function at 0x10046f50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x101c52b4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x34]
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebp
call fcn.10046eb0
add esp, 4
cmp eax, 1
jne 0x10046f91
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1010e4d7
add esp, 0x28
ret
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10046f96
sub eax, edx
je 0x10046f7e
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10046fa8
sub eax, edx
cmp eax, 0xa
ja 0x10046f7e
mov byte [esp + 8], 0x72
mov byte [esp + 9], 0x62
mov byte [esp + 0xa], cl
mov cl, cl
push 0x40
lea eax, [esp + 0xc]
push eax
push esi
call fcn.1010fcd9
add esp, 0xc
mov esi, eax
mov ebp, ebp
test esi, esi
je 0x10046f7e
push edi
nop
push 2
push 0
push esi
call fcn.1010fc54
add esp, 0xc
mov bl, bl
push esi
call fcn.1010fb5f
add esp, 4
mov edi, eax
mov ebp, ebp
push 0
push 0
push esi
call fcn.1010fc54
add esp, 0xc
push eax
pop eax
test edi, edi
jne 0x10047030
push esi
call fcn.1010f694
add esp, 4
mov edx, edx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1010e4d7
add esp, 0x28
ret
mov ecx, edi
and ecx, reloc.WS2_32.dll_closesocket
push ebx
jns 0x10047040
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edx, edi
sub edx, ecx
add edx, 8
push edx
call fcn.1010df39
add esp, 4
mov ebx, eax
mov ebp, ebp
test ebx, ebx
push esi
jne 0x10047078
call fcn.1010f694
add esp, 4
mov edx, edx
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1010e4d7
add esp, 0x28
ret
push edi
push 1
push ebx
call fcn.1010f9ac
add esp, 0x10
push ebx
pop ebx
push esi
call fcn.1010f694
add esp, 4
push edx
pop edx
mov edx, ebp
call fcn.10046b30
mov ebp, eax
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
mov al, 0x4f
mov byte [esp + 0x2c], 0x52
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], 0x33
mov byte [esp + 0x30], 0
xchg ebx, eax
xchg ebx, eax
xor eax, eax
jmp 0x100470c0
mov cl, byte [esp + eax + 0x2c]
mov byte [esp + eax + 0x24], cl
add eax, 1
test cl, cl
jne 0x100470c0
mov esi, esi
mov edx, dword [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.10046c10
mov ch, ch
mov byte [esp + 0x14], 0x77
mov byte [esp + 0x15], 0x62
mov byte [esp + 0x16], 0
mov esi, esi
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.1010fd9d
add esp, 8
mov esi, eax
mov esi, esi
test esi, esi
jne 0x1004712b
push ebx
call fcn.1010dffc
add esp, 4
mov al, al
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1010e4d7
add esp, 0x28
ret
mov dword [esp + 0x18], 0x4d444d44
mov ebx, ebx
push esi
push 4
lea edx, [esp + 0x20]
push 1
push edx
call fcn.10111f98
add esp, 0x10
nop
push esi
push 4
lea eax, [esp + 0x2c]
push 1
push eax
call fcn.10111f98
add esp, 0x10
nop
push esi
push ebp
push 1
push ebx
call fcn.10111f98
add esp, 0x10
push ecx
pop ecx
push esi
call fcn.1010f694
add esp, 4
push ecx
pop ecx
push ebx
call fcn.1010dffc
add esp, 4
mov bh, bh
mov ecx, dword [esp + 0x34]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.1010e4d7
add esp, 0x28
ret