Function at 0x4226d0
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
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [esp + 0x28], eax
mov eax, 1
mov esi, edi
mov dword [esp + 0x24], edi
mov ebx, edx
call fcn.0041e780
mov ecx, dword [edi + 4]
add ecx, dword [edi + 0xc]
mov dword [esp + 0x2c], vtable.Variant.0
mov byte [ecx], 8
inc dword [edi + 0xc]
mov ecx, ebx
lea ebx, [esp + 0x2c]
call fcn.0041ca60
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x34]
cmp eax, 1
je 0x422773
cmp eax, 2
je 0x422773
cmp eax, 0x12
je 0x42276a
cmp eax, 0x13
jne 0x422773
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x38]
jmp 0x422775
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, eax
mov eax, 4
mov esi, edi
call fcn.0041e780
test al, al
je 0x42279a
mov eax, dword [edi + 4]
add eax, dword [edi + 0xc]
mov dword [eax], ebx
add dword [edi + 0xc], 4
mov esi, dword [0x5571cc]
lea ecx, [esp + 0x10]
call fcn.00490c90
cmp dword [0x5571cc], esi
ja 0x4227b9
cmp esi, dword [0x5571d0]
jbe 0x4227be
call fcn.004c043a
push 0x5571c0
lea ecx, [esp + 0x14]
call fcn.00401ff0
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x14], esi
jmp 0x4227e0
mov esi, dword [0x5571d0]
lea ecx, [esp + 0x18]
call fcn.00490c90
cmp dword [0x5571cc], esi
ja 0x4227ff
cmp esi, dword [0x5571d0]
jbe 0x422804
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 0x422835
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402010
test al, al
jne 0x42283a
call fcn.004c043a
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
je 0x4229c7
lea ecx, [esp + 0x10]
call fcn.00402060
test al, al
jne 0x42285a
call fcn.004c043a
lea ecx, [esp + 0x10]
call fcn.00402030
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x422871
call fcn.004c043a
mov edx, dword [esp + 0x14]
push edx
lea edi, [esp + 0x30]
call fcn.0041c640
test al, al
je 0x422990
lea ecx, [esp + 0x10]
call fcn.00402060
test al, al
jne 0x422899
call fcn.004c043a
lea ecx, [esp + 0x10]
call fcn.00402030
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0x10]
jb 0x4228b6
call fcn.004c043a
mov eax, dword [esp + 0x14]
mov edi, eax
mov eax, dword [eax + 0x14]
push eax
call ebx
mov esi, dword [esp + 0x24]
movzx edx, ax
mov eax, 2
mov dword [esp + 0x20], edx
call fcn.0041e780
test al, al
je 0x4228e9
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 0x422911
call fcn.004c043a
lea ecx, [esp + 0x10]
call fcn.00402030
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x422928
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 0x422ba6
lea ecx, [esp + 0x10]
call fcn.00402060
test al, al
jne 0x42295b
call fcn.004c043a
lea ecx, [esp + 0x10]
call fcn.00402030
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x422972
call fcn.004c043a
mov eax, dword [esp + 0x34]
cmp eax, 0x12
je 0x422980
cmp eax, 0x13
jne 0x422990
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 0x4229a2
call fcn.004c043a
lea ecx, [esp + 0x10]
call fcn.00402030
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x4229b9
call fcn.004c043a
add dword [esp + 0x14], 0x1c
mov edi, dword [esp + 0x24]
jmp 0x4227e0
lea esi, [esp + 0x18]
lea ecx, [esp + 0x2c]
call fcn.0041c8e0
jmp 0x4229e0
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 0x422a0a
push esi
lea ecx, [esp + 0x1c]
call fcn.00402010
test al, al
jne 0x422a0f
call fcn.004c043a
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 4]
je 0x422bc6
lea ecx, [esp + 0x18]
call fcn.00402060
test al, al
jne 0x422a2e
call fcn.004c043a
lea ecx, [esp + 0x18]
call fcn.00402030
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x18]
jne 0x422a45
call fcn.004c043a
mov eax, dword [esp + 0x1c]
add eax, 0x10
push eax
lea ecx, [esp + 0x70]
call fcn.00402940
mov byte [esp + 0x98], 1
cmp dword [esp + 0x80], 0xa
jne 0x422af3
lea ecx, [esp + 0x6c]
call fcn.00402aa0
cmp byte [eax], 0x30
jne 0x422af3
cmp dword [esp + 0x80], 1
jae 0x422a89
call fcn.004c043a
lea ecx, [esp + 0x6c]
call fcn.00402aa0
inc eax
cmp byte [eax], 0x78
jne 0x422af3
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], 1
call fcn.00402b90
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x80]
push edx
call ebx
movzx eax, ax
mov dword [esp + 0x20], eax
mov eax, 2
mov esi, edi
call fcn.0041e780
test al, al
je 0x422b26
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 0x422b55
call fcn.004c043a
lea ecx, [esp + 0x18]
call fcn.00402030
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x18]
jne 0x422b6c
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 0x422ba1
mov byte [esp + 0x98], 0
call fcn.00402b90
lea esi, [esp + 0x18]
call fcn.0041b2a0
jmp 0x4229e0
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 0x422c11
mov eax, 3
mov esi, edi
call fcn.0041e780
test al, al
je 0x422bf3
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 4