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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47d0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x49d7b0]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [0x49d7b0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, 1
mov esi, ebx
mov edi, ecx
call fcn.00416040
mov ecx, dword [ebx + 4]
add ecx, dword [ebx + 0xc]
lea edx, [esp + 0x24]
mov byte [ecx], 8
add dword [ebx + 0xc], 1
push edx
mov ecx, edi
mov dword [esp + 0x28], 0x48d71c
call fcn.0040f170
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x2c]
cmp eax, 1
je 0x4150cb
cmp eax, 2
je 0x4150cb
cmp eax, 0x12
je 0x4150c2
cmp eax, 0x13
jne 0x4150cb
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x24]
jmp 0x4150cd
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, eax
mov eax, 4
mov esi, ebx
call fcn.00416040
test al, al
je 0x4150f2
mov ecx, dword [ebx + 4]
add ecx, dword [ebx + 0xc]
mov dword [ecx], edi
add dword [ebx + 0xc], 4
mov esi, dword [0x4a2690]
lea ecx, [esp + 0xc]
call fcn.00408300
cmp dword [0x4a2690], esi
ja 0x415111
cmp esi, dword [0x4a2694]
jbe 0x415116
call fcn.0043c1ce
mov dword [esp + 0xc], 0x4a268c
mov dword [esp + 0x10], esi
jmp 0x415130
mov esi, dword [0x4a2694]
lea ecx, [esp + 0x14]
call fcn.00408300
cmp dword [0x4a2690], esi
ja 0x41514f
cmp esi, dword [0x4a2694]
jbe 0x415154
call fcn.0043c1ce
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x14], 0x4a268c
mov dword [esp + 0x18], esi
je 0x41516f
cmp eax, 0x4a268c
je 0x415178
call fcn.0043c1ce
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x18]
je 0x4152c7
test eax, eax
jne 0x415193
call fcn.0043c1ce
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax + 8]
jb 0x4151a1
call fcn.0043c1ce
mov edx, dword [esp + 0x10]
push edx
lea edi, [esp + 0x28]
call fcn.0040ed70
test al, al
je 0x41529f
cmp dword [esp + 0xc], 0
jne 0x4151c3
call fcn.0043c1ce
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx + 8]
jb 0x4151d9
call fcn.0043c1ce
mov eax, dword [esp + 0x10]
mov edi, eax
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
mov eax, 2
mov esi, ebx
mov dword [esp + 0x1c], edx
call fcn.00416040
test al, al
je 0x41520e
mov eax, dword [ebx + 4]
add eax, dword [ebx + 0xc]
mov cx, word [esp + 0x1c]
mov word [eax], cx
add dword [ebx + 0xc], 2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call fcn.00401d70
mov ecx, ebx
call fcn.00415f50
cmp dword [esp + 0xc], 0
jne 0x415230
call fcn.0043c1ce
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, dword [edx + 8]
jb 0x415242
call fcn.0043c1ce
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040e9a0
mov ecx, dword [esp + 0x20]
push eax
push ebx
call fcn.00415ca0
test al, al
je 0x41547f
cmp dword [esp + 0xc], 0
jne 0x41526f
call fcn.0043c1ce
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, dword [edx + 8]
jb 0x415281
call fcn.0043c1ce
mov eax, dword [esp + 0x2c]
cmp eax, 0x12
je 0x41528f
cmp eax, 0x13
jne 0x41529f
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
add ecx, 0x1c
call fcn.0040f470
cmp dword [esp + 0xc], 0
jne 0x4152ab
call fcn.0043c1ce
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
cmp ecx, dword [edx + 8]
jb 0x4152bd
call fcn.0043c1ce
add dword [esp + 0x10], 0x1c
jmp 0x415130
lea esi, [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.0040eff0
jmp 0x4152e0
lea esi, [esp + 0x40]
lea ecx, [esp + 0x24]
call fcn.0040f070
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4152fb
cmp eax, dword [esi]
je 0x415304
call fcn.0043c1ce
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 4]
je 0x41549f
test eax, eax
jne 0x41531e
call fcn.0043c1ce
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 4]
jne 0x41532c
call fcn.0043c1ce
mov eax, dword [esp + 0x18]
add eax, 0x10
push eax
lea ecx, [esp + 0x68]
call fcn.00401d70
mov byte [esp + 0x90], 1
cmp dword [esp + 0x78], 0xa
jne 0x4153d6
lea ecx, [esp + 0x64]
call fcn.004024d0
cmp byte [eax], 0x30
jne 0x4153d6
cmp dword [esp + 0x78], 1
jae 0x41536a
call fcn.0043c1ce
lea ecx, [esp + 0x64]
call fcn.004024d0
add eax, 1
cmp byte [eax], 0x78
jne 0x4153d6
push 0x10
push 0
lea ecx, [esp + 0x6c]
call fcn.00401dd0
push eax
call fcn.004415ea
add esp, 0xc
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x48d8b0
call fcn.00402310
lea edi, [esp + 0x68]
call fcn.004160f0
add esp, 0x20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x9c], 2
call fcn.00401f30
mov ecx, edi
mov byte [esp + 0x90], 1
call fcn.00401db0
mov eax, dword [esp + 0x78]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, 2
mov esi, ebx
mov dword [esp + 0x1c], ecx
call fcn.00416040
test al, al
je 0x41540a
mov edx, dword [ebx + 4]
add edx, dword [ebx + 0xc]
mov ax, word [esp + 0x1c]
mov word [edx], ax
add dword [ebx + 0xc], 2
sub esp, 0x1c
lea edx, [esp + 0x80]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00401d70
mov ecx, ebx
call fcn.00415f50
cmp dword [esp + 0x14], 0
jne 0x415433
call fcn.0043c1ce
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 4]
jne 0x415445
call fcn.0043c1ce
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add edx, 0x30
push edx
push ebx
call fcn.00415ca0
test al, al
lea ecx, [esp + 0x64]
je 0x41547a
mov byte [esp + 0x90], 0
call fcn.00401db0
lea esi, [esp + 0x14]
call fcn.0040da20
jmp 0x4152e0
call fcn.00401db0
mov dword [esp + 0x90], 0xffffffff
lea esi, [esp + 0x24]
mov dword [esp + 0x24], 0x48d71c
call fcn.0040e0e0
xor al, al
jmp 0x4154ea
mov eax, 3
mov esi, ebx
call fcn.00416040
test al, al
je 0x4154cc
mov eax, dword [ebx + 4]
add eax, dword [ebx + 0xc]
mov cx, word [0x49ecfc]
mov word [eax], cx
mov dl, byte [0x49ecfe]
mov byte [eax + 2], dl
add dword [ebx + 0xc], 3
mov dword [esp + 0x90], 0xffffffff
lea esi, [esp + 0x24]
mov dword [esp + 0x24], 0x48d71c
call fcn.0040e0e0
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.0043bced
mov esp, ebp
pop ebp
ret 4