Function at 0x414270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x44]
push 0x45b608
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esp + 0x30]
mov dword [esp + 0x30], 0
call fcn.00404b40
mov dword [esp + 0x3c], 0
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x3c], 1
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x3c], 2
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4145dd
push 0x45de0c
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ebx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
call fcn.00404b40
mov byte [esp + 0x3c], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x41437d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41436c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41436c
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x414363
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x1c], edi
jmp 0x41437d
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.004053c0
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x3c], 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 0x4143a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], 0
jle 0x41453b
mov ebx, edi
lea eax, [esp + 0x18]
call fcn.00404e80
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebp, eax
test ebp, ebp
jbe 0x41453b
push 0x45de0c
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x1c]
push eax
lea ebx, [esp + 0x2c]
call fcn.00404b40
mov byte [esp + 0x3c], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x414442
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x414431
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x414431
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x414428
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [esp + 0x1c], edi
jmp 0x414442
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.004053c0
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414467
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [edi - 0xc], 0
jle 0x414531
mov ebx, edi
lea eax, [esp + 0x18]
call fcn.00404e80
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
test eax, eax
jbe 0x41453b
mov ecx, dword [esp + 0x48]
cmp ecx, ebp
jb 0x41453b
cmp ecx, eax
ja 0x41453b
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4144cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4144f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414518
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp dword [esp + 0x48], ebp
je 0x414661
mov eax, dword [esp + 0x44]
push 0x45b608
lea edx, [esp + 0x34]
push edx
push eax
lea ebx, [esp + 0x30]
call fcn.00404b40
mov byte [esp + 0x3c], 5
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4145aa
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41459d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41459d
call fcn.00401850
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x414594
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
jmp 0x4145aa
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004053c0
mov byte [esp + 0x3c], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x414306
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414602
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414623
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41464b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4144c3