Function at 0x4181c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x2f50
call fcn.0043ae00
mov eax, dword [esp + 0x2f54]
push ebx
push esi
mov dword [esp + 0x14], ecx
push edi
push eax
lea ecx, [esp + 0xb54]
push 0x46fd4c
push ecx
call fcn.0043afc4
lea edx, [esp + 0xb5c]
lea eax, [esp + 0x35c]
push edx
push eax
call fcn.00407ec0
lea ecx, [esp + 0x364]
push str.:5432_o_a.y
push ecx
mov byte [esp + eax + 0x36c], 0
call fcn.0043ad80
xor ebx, ebx
add esp, 0x1c
cmp eax, ebx
jne 0x418231
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2f50
ret 0xc
mov byte [eax], 0
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x750]
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2f68]
and ecx, 3
push ebp
lea eax, [eax + eax*2]
mov dword [esp + 0x20], ebx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x473aa0]
lea eax, [eax + eax*4]
mov dword [esp + 0x2d], edx
mov byte [esp + 0x2c], cl
mov ecx, dword [0x51a850]
lea eax, [eax + eax*4]
mov dword [esp + 0x31], edx
mov dword [esp + 0x14], ebx
shl eax, 2
mov dword [esp + 0x35], edx
mov dword [esp + 0x28], eax
mov edx, dword [eax + ecx + 0xc]
mov eax, dword [0x4f439c]
cmp eax, ebx
mov dword [esp + 0x10], edx
jle 0x41863a
mov edi, dword [0x4f4398]
mov dword [esp + 0x18], ebx
mov ecx, dword [ebx + edi + 0x44]
lea eax, [ebx + edi]
test ecx, ecx
je 0x418619
push eax
lea eax, [esp + 0x358]
push eax
call fcn.0043fa60
add esp, 8
test eax, eax
jne 0x418613
mov edi, dword [0x4f4398]
lea eax, [esp + 0x754]
lea esi, [ebx + edi + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x418315
test cl, cl
je 0x418311
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x418315
add eax, 2
add esi, 2
test cl, cl
jne 0x4182f1
xor eax, eax
jmp 0x41831a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418619
mov eax, dword [ebx + edi + 0x64]
test eax, eax
je 0x41836c
mov eax, dword [ebx + edi + 0x60]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push eax
call esi
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
call esi
cmp eax, edi
ja 0x418613
mov edx, dword [0x4f4398]
mov eax, dword [ebx + edx + 0x5c]
push eax
call esi
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
call esi
cmp eax, edi
jb 0x418613
mov edi, dword [0x4f4398]
mov eax, dword [ebx + edi + 0x58]
test eax, eax
je 0x4183d6
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x41839d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.0041d940
mov edi, dword [0x4f4398]
mov dword [esp + 0x20], 1
lea esi, [ebx + edi + 0x48]
lea eax, [esp + 0x2c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4183c9
test cl, cl
je 0x4183c5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4183c9
add eax, 2
add esi, 2
test cl, cl
jne 0x4183a5
xor eax, eax
jmp 0x4183ce
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x418619
test byte [ebx + edi + 0x68], 2
je 0x418619
cmp dword [ebx + edi + 0x78], 0xffffffff
je 0x41863a
lea eax, [esp + 0x24]
push eax
call fcn.0043ba28
lea ecx, [esp + 0x28]
push ecx
call fcn.0043b8c8
mov esi, dword [0x4f4398]
mov ebp, eax
mov edi, dword [0x4f43a4]
add esp, 8
mov ecx, dword [ebx + esi + 0x78]
mov edx, dword [ebp + 0x18]
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, ecx
add ecx, edx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
test byte [edi + eax*4 + 0x7038], 2
je 0x41863a
mov ecx, dword [ebx + esi + 0x78]
push 0x46f778
lea eax, [ecx + ecx*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
mov eax, edx
shl eax, 0xc
add eax, edi
add eax, edx
lea ecx, [eax + ecx*4 + 0x31]
push ecx
lea ecx, [esp + 0xf5c]
call fcn.0042c2f0
lea ecx, [esp + 0xf54]
call fcn.0042c3b0
test eax, eax
je 0x418613
lea ecx, [esp + 0xf54]
call fcn.0042c350
mov bl, byte [0x473aa0]
mov edx, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], bl
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x145]
mov byte [esp + 0x144], bl
lea ebx, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x3c]
mov edx, ecx
mov esi, edi
mov edi, ebx
push 0x46e14c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0042f510
lea ecx, [esp + 0x44]
push 0x46e148
push ecx
call fcn.0043ad80
add esp, 0x10
test eax, eax
je 0x418546
mov byte [eax], 0
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x144]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x46e14c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x148]
push ecx
call fcn.0042f510
add esp, 8
mov dl, byte [0x473aa0]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24d]
mov byte [esp + 0x24c], dl
lea edx, [esp + 0x24c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push eax
push ecx
push str._02d:_02d
push edx
call fcn.0043afc4
add esp, 0x10
lea esi, [esp + 0x24c]
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4185b3
test cl, cl
je 0x4185af
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4185b3
add eax, 2
add esi, 2
test cl, cl
jne 0x41858b
xor eax, eax
jmp 0x4185b8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x4185fb
lea esi, [esp + 0x144]
lea eax, [esp + 0x24c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4185f2
test cl, cl
je 0x4185ee
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4185f2
add eax, 2
add esi, 2
test cl, cl
jne 0x4185ca
xor eax, eax
jmp 0x4185f7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jle 0x41863a
lea ecx, [esp + 0xf54]
call fcn.0042c3b0
test eax, eax
jne 0x418487
mov ebx, dword [esp + 0x18]
mov edi, dword [0x4f4398]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4f439c]
inc eax
add ebx, 0x84
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
jl 0x4182b8
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4f439c]
cmp eax, ecx
pop ebp
jne 0x4186b4
mov eax, dword [0x4f67a4]
test eax, eax
je 0x418223
lea eax, [esp + 0x750]
lea ecx, [esp + 0x350]
push eax
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004240d0
mov edx, eax
test edx, edx
je 0x4186a6
mov eax, dword [0x51a850]
mov ecx, dword [esp + 0x24]
lea edi, [esp + 0x350]
lea ebx, [ecx + eax + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, edx
pop ebx
add esp, 0x2f50
ret 0xc
mov ecx, dword [esp + 0x2f64]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, 1
add esp, 0x2f50
ret 0xc