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

Disassembly:
push 0xffffffffffffffff
push 0x4d11a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [0x504530]
push ebx
mov ebx, ecx
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x30]
push edi
xor edi, edi
cmp eax, edi
jne 0x4184b5
xor eax, eax
jmp 0x418bab
cmp dword [0x513e38], edi
push ebp
push esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
je 0x4184df
cmp dword [0x513dd4], edi
jne 0x4184fa
cmp dword [0x513dd8], edi
jne 0x4184ef
push 0x512990
xor esi, esi
call fcn.00461f50
test eax, eax
je 0x4184fa
mov ebp, 1
mov dword [esp + 0x24], ebp
jmp 0x418503
mov dword [esp + 0x24], edi
mov ebp, 1
push edi
lea eax, [esp + 0x48]
push eax
lea edi, [esp + 0x18]
mov esi, ebx
call fcn.004469a0
test eax, eax
je 0x4185ac
lea esp, [esp]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov edi, str.RLEAF
lea esi, [esp + 0x44]
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x418543
mov dword [esp + 0x3c], ebp
jmp 0x41858f
mov edi, str.RNAME
lea esi, [esp + 0x44]
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41855d
mov dword [esp + 0x30], ebp
jmp 0x41858f
mov edi, str.RGPS
lea esi, [esp + 0x44]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x418577
mov dword [esp + 0x2c], ebp
jmp 0x41858f
mov edi, str.REXT
lea esi, [esp + 0x44]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41858f
mov dword [esp + 0x18], ebp
mov dword [ebx + 0x1c], eax
push 0
lea eax, [esp + 0x48]
push eax
lea edi, [esp + 0x18]
mov esi, ebx
call fcn.004469a0
test eax, eax
jne 0x418520
push 1
mov edi, str.CRAWLA
call fcn.0040f610
add esp, 4
mov ebx, eax
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
xor esi, esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x20], esi
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x5c], 1
call fcn.004be803
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x30], esi
mov byte [esp + 0x5c], 2
je 0x41868d
push 0x511880
lea edi, [esp + 0x2c]
call fcn.00447dc0
push 0xff
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
mov byte [esp + 0x64], 3
call fcn.00405820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 4
call fcn.00403e70
mov byte [esp + 0x5c], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418666
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x2c], esi
je 0x4186a1
mov eax, 0x511880
call fcn.00447f00
mov dword [esp + 0x20], eax
cmp dword [esp + 0x18], esi
je 0x4186e2
push 0x4db968
lea ecx, [esp + 0x14]
call fcn.004039a0
push 0x4db95c
lea ecx, [esp + 0x20]
call fcn.004039a0
push 0x4db958
lea esi, [esp + 0x20]
call fcn.0040de50
mov eax, dword [0x5345f0]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00409df0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4186f8
mov eax, dword [ebx]
push ebp
mov ecx, ebx
call dword [eax + 0x14]
mov edi, eax
add edi, 6
jmp 0x4186fa
xor edi, edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x418716
mov edx, dword [ebx]
mov eax, ecx
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov esi, eax
add esi, 3
jmp 0x418718
xor esi, esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x418732
mov edx, dword [ebx]
mov eax, ecx
push eax
mov ecx, ebx
call dword [edx + 0x14]
add eax, 4
jmp 0x418734
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
neg ecx
sbb ecx, ecx
and ecx, 9
neg edx
sbb edx, edx
add ecx, eax
add edx, 6
add edx, ecx
add edx, esi
lea eax, [edx + edi + 0x10]
push 1
push eax
mov edi, str.SELF
mov eax, ebx
call fcn.004468c0
push 0
push 6
mov edi, 0x4db8a0
mov eax, ebx
call fcn.004468c0
mov ecx, dword [0x513e2c]
push ecx
call fcn.00416090
xor edx, edx
mov dx, word [0x513e2a]
push edx
call dword [sym.imp.WS2_32.dll_htons]
push eax
call fcn.00416000
push 0
push 2
mov edi, 0x4db89c
mov eax, ebx
call fcn.004468c0
push 0xc8
mov ecx, 0x513e18
xor esi, esi
call fcn.004a2c60
test eax, eax
je 0x418810
mov eax, dword [0x5129a0]
neg eax
sbb eax, eax
mov dword [esp + 0x18], eax
je 0x418806
mov edi, 2
mov edi, edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 0x512994
call fcn.004be0d6
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x488], edi
jne 0x4187fe
cmp dword [eax + 0x4b8], edi
jne 0x4187fe
inc esi
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4187d0
mov ecx, 0x513e18
call fcn.004a2d24
push esi
call fcn.00416000
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x41883e
mov eax, dword [ebx]
push 0
push ebp
mov ecx, ebx
call dword [eax + 0x14]
push eax
mov edi, str.NAME
mov eax, ebx
call fcn.004468c0
mov edx, dword [ebx]
push 0
push ebp
mov ecx, ebx
call dword [edx + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x41886c
mov edx, dword [ebx]
push 0
mov esi, eax
push esi
mov ecx, ebx
call dword [edx + 0x14]
push eax
mov edi, 0x4db954
mov eax, ebx
call fcn.004468c0
mov eax, dword [ebx]
push 0
push esi
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x41889a
mov edx, dword [ebx]
mov esi, ecx
push 0
push esi
mov ecx, ebx
call dword [edx + 0x14]
push eax
mov edi, 0x4db950
mov eax, ebx
call fcn.004468c0
mov eax, dword [ebx]
push 0
push esi
mov ecx, ebx
call dword [eax + 0x10]
mov eax, dword [esp + 0x24]
push 0
test eax, eax
push 0
mov eax, ebx
mov edi, 0x4db94c
jne 0x4188b2
mov edi, str.LEAF
call fcn.004468c0
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4188d5
push 0
push 4
mov edi, 0x4db890
mov eax, ebx
call fcn.004468c0
push esi
call fcn.00416100
mov eax, dword [0x5129a0]
neg eax
sbb eax, eax
mov dword [esp + 0x24], eax
je 0x418b23
jmp 0x4188f0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x512994
call fcn.004be0d6
mov esi, dword [esp + 0x28]
cmp dword [esi + 0x48c], 7
jl 0x418b17
lea ecx, [esp + 0x14]
xor ebp, ebp
call fcn.00403dd0
mov eax, dword [esi + 0x488]
mov ecx, 2
cmp eax, ecx
mov dword [esp + 0x20], ebp
jne 0x418a73
mov eax, dword [esi + 0x4a8]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x418a0a
cmp dword [esp + 0x30], ebp
je 0x4189cd
mov ecx, dword [esp + 0x18]
push ecx
lea edi, [esp + 0x3c]
call fcn.00447dc0
push 0xff
lea edx, [esp + 0x38]
push edx
mov ecx, eax
mov byte [esp + 0x64], 5
call fcn.00405820
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 6
call fcn.00403e70
mov byte [esp + 0x5c], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4189aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4189cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4189e2
mov eax, dword [esp + 0x18]
call fcn.00447f00
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4189fa
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x14]
mov ebp, eax
add ebp, 6
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, 2
je 0x418a0a
add ebp, 9
cmp dword [esi + 0x488], ecx
jne 0x418a73
cmp dword [esi + 0x4b8], ecx
je 0x418a7f
push 1
lea eax, [ebp + 0x10]
push eax
mov edi, 0x4db8a8
mov eax, ebx
call fcn.004468c0
push 0
push 6
mov edi, 0x4db8a0
mov eax, ebx
call fcn.004468c0
mov ecx, dword [esi + 8]
push ecx
call fcn.00416090
xor edx, edx
mov dx, word [esi + 6]
push edx
call dword [sym.imp.WS2_32.dll_htons]
push eax
call fcn.00416000
push 0
push 2
mov edi, 0x4db89c
mov eax, ebx
call fcn.004468c0
xor eax, eax
mov ax, word [esi + 0x524]
jmp 0x418ac3
cmp dword [esi + 0x4b8], ecx
jne 0x418b17
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x418b17
push 1
lea ecx, [ebp + 0xa]
push ecx
mov edi, 0x4db8a4
mov eax, ebx
call fcn.004468c0
push 0
push 6
mov edi, 0x4db8a0
mov eax, ebx
call fcn.004468c0
mov edx, dword [esi + 8]
push edx
call fcn.00416090
xor eax, eax
mov ax, word [esi + 6]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push eax
call fcn.00416000
test ebp, ebp
jle 0x418b17
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x418af9
mov edx, dword [ebx]
push 0
push esi
mov ecx, ebx
call dword [edx + 0x14]
push eax
mov edi, str.NAME
mov eax, ebx
call fcn.004468c0
mov eax, dword [ebx]
push 0
push esi
mov ecx, ebx
call dword [eax + 0x10]
mov esi, dword [esp + 0x20]
test esi, esi
je 0x418b17
push 0
push 4
mov edi, 0x4db890
mov eax, ebx
call fcn.004468c0
push esi
call fcn.00416100
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4188f0
mov ecx, dword [esp + 0x68]
push 1
push 0
push 1
push ebx
push ecx
mov ecx, dword [esp + 0x78]
call fcn.00416870
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
pop ebp
jg 0x418b5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x54], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418b80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418ba6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x4c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x44]
pop ebx
call fcn.004ae38e
add esp, 0x50
ret 8