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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5084d8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x551bd0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x551bd0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edi
mov ebx, edx
je 0x421d9a
mov eax, 1
mov esi, edi
call fcn.0041e780
mov ecx, dword [edi + 4]
add ecx, dword [edi + 0xc]
mov byte [ecx], 3
inc dword [edi + 0xc]
mov ecx, ebx
lea ebx, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.Variant.0
call fcn.0041ca60
mov dword [esp + 0x98], 0
mov esi, dword [0x5571cc]
lea ecx, [esp + 0x10]
call fcn.00490c90
cmp dword [0x5571cc], esi
ja 0x421dd7
cmp esi, dword [0x5571d0]
jbe 0x421ddc
call fcn.004c043a
push 0x5571c0
lea ecx, [esp + 0x14]
call fcn.00401ff0
mov dword [esp + 0x14], esi
mov edi, edi
mov esi, dword [0x5571d0]
lea ecx, [esp + 0x18]
call fcn.00490c90
cmp dword [0x5571cc], esi
ja 0x421e0f
cmp esi, dword [0x5571d0]
jbe 0x421e14
call fcn.004c043a
push 0x5571c0
lea ecx, [esp + 0x1c]
call fcn.00401ff0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], esi
call fcn.00402060
test al, al
je 0x421e45
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00402010
test al, al
jne 0x421e4a
call fcn.004c043a
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
je 0x421fdb
lea ecx, [esp + 0x10]
call fcn.00402060
test al, al
jne 0x421e6a
call fcn.004c043a
lea ecx, [esp + 0x10]
call fcn.00402030
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x421e81
call fcn.004c043a
mov edx, dword [esp + 0x14]
push edx
lea edi, [esp + 0x30]
call fcn.0041c640
test al, al
je 0x421fa4
lea ecx, [esp + 0x10]
call fcn.00402060
test al, al
jne 0x421ea9
call fcn.004c043a
lea ecx, [esp + 0x10]
call fcn.00402030
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0x10]
jb 0x421ec6
call fcn.004c043a
mov eax, dword [esp + 0x14]
mov edi, eax
mov eax, dword [eax + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x24]
movzx edx, ax
mov eax, 2
mov dword [esp + 0x20], edx
call fcn.0041e780
test al, al
je 0x421efd
mov eax, dword [esi + 4]
add eax, dword [esi + 0xc]
mov cx, word [esp + 0x20]
mov word [eax], cx
add dword [esi + 0xc], 2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push edi
call fcn.00402940
mov ecx, esi
call fcn.0041e690
lea ecx, [esp + 0x10]
call fcn.00402060
test al, al
jne 0x421f25
call fcn.004c043a
lea ecx, [esp + 0x10]
call fcn.00402030
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x421f3c
call fcn.004c043a
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.0041c220
mov ecx, dword [esp + 0x28]
push eax
push esi
call fcn.004233d0
test al, al
je 0x4221bd
lea ecx, [esp + 0x10]
call fcn.00402060
test al, al
jne 0x421f6f
call fcn.004c043a
lea ecx, [esp + 0x10]
call fcn.00402030
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x421f86
call fcn.004c043a
mov eax, dword [esp + 0x34]
cmp eax, 0x12
je 0x421f94
cmp eax, 0x13
jne 0x421fa4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
add eax, 0x1c
call fcn.0041ce80
lea ecx, [esp + 0x10]
call fcn.00402060
test al, al
jne 0x421fb6
call fcn.004c043a
lea ecx, [esp + 0x10]
call fcn.00402030
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x421fcd
call fcn.004c043a
add dword [esp + 0x14], 0x1c
mov edi, dword [esp + 0x24]
jmp 0x421df0
lea esi, [esp + 0x18]
lea ecx, [esp + 0x2c]
call fcn.0041c8e0
jmp 0x421ff0
lea esi, [esp + 0x48]
lea ecx, [esp + 0x2c]
call fcn.0041c960
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00402060
test al, al
je 0x42201a
push esi
lea ecx, [esp + 0x1c]
call fcn.00402010
test al, al
jne 0x42201f
call fcn.004c043a
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 4]
je 0x4221dd
lea ecx, [esp + 0x18]
call fcn.00402060
test al, al
jne 0x42203e
call fcn.004c043a
lea ecx, [esp + 0x18]
call fcn.00402030
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x18]
jne 0x422055
call fcn.004c043a
mov eax, dword [esp + 0x1c]
add eax, 0x10
push eax
lea ecx, [esp + 0x70]
call fcn.00402940
mov ebx, 1
mov byte [esp + 0x98], bl
cmp dword [esp + 0x80], 0xa
jne 0x422106
lea ecx, [esp + 0x6c]
call fcn.00402aa0
cmp byte [eax], 0x30
jne 0x422106
cmp dword [esp + 0x80], ebx
jae 0x42209c
call fcn.004c043a
lea ecx, [esp + 0x6c]
call fcn.00402aa0
add eax, ebx
cmp byte [eax], 0x78
jne 0x422106
push 0x10
push 0
lea ecx, [esp + 0x74]
call fcn.00402c10
push eax
call fcn.004c8d35
add esp, 0xc
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push str._I32u
call fcn.00402380
lea edi, [esp + 0x70]
call fcn.00427160
add esp, 0x20
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x9c], 2
call fcn.004082d0
mov ecx, edi
mov byte [esp + 0x98], bl
call fcn.00402b90
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x80]
push edx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esp + 0x20], eax
mov eax, 2
mov esi, edi
call fcn.0041e780
test al, al
je 0x42213d
mov ecx, dword [edi + 4]
add ecx, dword [edi + 0xc]
mov dx, word [esp + 0x20]
mov word [ecx], dx
add dword [edi + 0xc], 2
sub esp, 0x1c
lea eax, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00402940
mov ecx, edi
call fcn.0041e690
lea ecx, [esp + 0x18]
call fcn.00402060
test al, al
jne 0x42216c
call fcn.004c043a
lea ecx, [esp + 0x18]
call fcn.00402030
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x18]
jne 0x422183
call fcn.004c043a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
add edx, 0x30
push edx
push edi
call fcn.004233d0
lea ecx, [esp + 0x6c]
test al, al
je 0x4221b8
mov byte [esp + 0x98], 0
call fcn.00402b90
lea esi, [esp + 0x18]
call fcn.0041b2a0
jmp 0x421ff0
call fcn.00402b90
mov dword [esp + 0x98], 0xffffffff
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.Variant.0
call fcn.0041b970
xor al, al
jmp 0x422228
mov eax, 3
mov esi, edi
call fcn.0041e780
test al, al
je 0x42220a
mov eax, dword [edi + 4]
add eax, dword [edi + 0xc]
mov cx, word [0x5535fc]
mov word [eax], cx
mov dl, byte [0x5535fe]
mov byte [eax + 2], dl
add dword [edi + 0xc], 3
mov dword [esp + 0x98], 0xffffffff
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.Variant.0
call fcn.0041b970
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004bfe65
mov esp, ebp
pop ebp
ret 8