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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x503678
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x54eb90]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x54eb90]
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 0x41ca5a
mov eax, 1
mov esi, edi
call fcn.00419420
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.00417610
mov dword [esp + 0x98], 0
mov esi, dword [0x554108]
lea ecx, [esp + 0x10]
call fcn.00402030
cmp dword [0x554108], esi
ja 0x41ca97
cmp esi, dword [0x55410c]
jbe 0x41ca9c
call fcn.004bdd0a
push 0x5540fc
lea ecx, [esp + 0x14]
call fcn.00402050
mov dword [esp + 0x14], esi
mov edi, edi
mov esi, dword [0x55410c]
lea ecx, [esp + 0x18]
call fcn.00402030
cmp dword [0x554108], esi
ja 0x41cacf
cmp esi, dword [0x55410c]
jbe 0x41cad4
call fcn.004bdd0a
push 0x5540fc
lea ecx, [esp + 0x1c]
call fcn.00402050
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], esi
call fcn.004020c0
test al, al
je 0x41cb05
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00402070
test al, al
jne 0x41cb0a
call fcn.004bdd0a
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x1c]
je 0x41cc9b
lea ecx, [esp + 0x10]
call fcn.004020c0
test al, al
jne 0x41cb2a
call fcn.004bdd0a
lea ecx, [esp + 0x10]
call fcn.00402090
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x41cb41
call fcn.004bdd0a
mov edx, dword [esp + 0x14]
push edx
lea edi, [esp + 0x30]
call fcn.004171f0
test al, al
je 0x41cc64
lea ecx, [esp + 0x10]
call fcn.004020c0
test al, al
jne 0x41cb69
call fcn.004bdd0a
lea ecx, [esp + 0x10]
call fcn.00402090
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0x10]
jb 0x41cb86
call fcn.004bdd0a
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.00419420
test al, al
je 0x41cbbd
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.00402990
mov ecx, esi
call fcn.00419330
lea ecx, [esp + 0x10]
call fcn.004020c0
test al, al
jne 0x41cbe5
call fcn.004bdd0a
lea ecx, [esp + 0x10]
call fcn.00402090
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x41cbfc
call fcn.004bdd0a
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.00416df0
mov ecx, dword [esp + 0x28]
push eax
push esi
call fcn.0041e090
test al, al
je 0x41ce81
lea ecx, [esp + 0x10]
call fcn.004020c0
test al, al
jne 0x41cc2f
call fcn.004bdd0a
lea ecx, [esp + 0x10]
call fcn.00402090
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x41cc46
call fcn.004bdd0a
mov eax, dword [esp + 0x34]
cmp eax, 0x12
je 0x41cc54
cmp eax, 0x13
jne 0x41cc64
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
add eax, 0x1c
call fcn.00417a10
lea ecx, [esp + 0x10]
call fcn.004020c0
test al, al
jne 0x41cc76
call fcn.004bdd0a
lea ecx, [esp + 0x10]
call fcn.00402090
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x41cc8d
call fcn.004bdd0a
add dword [esp + 0x14], 0x1c
mov edi, dword [esp + 0x24]
jmp 0x41cab0
lea esi, [esp + 0x18]
lea ecx, [esp + 0x2c]
call fcn.00417490
jmp 0x41ccb0
lea esi, [esp + 0x48]
lea ecx, [esp + 0x2c]
call fcn.00417510
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.004020c0
test al, al
je 0x41ccda
push esi
lea ecx, [esp + 0x1c]
call fcn.00402070
test al, al
jne 0x41ccdf
call fcn.004bdd0a
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 4]
je 0x41cea1
lea ecx, [esp + 0x18]
call fcn.004020c0
test al, al
jne 0x41ccfe
call fcn.004bdd0a
lea ecx, [esp + 0x18]
call fcn.00402090
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x18]
jne 0x41cd15
call fcn.004bdd0a
mov eax, dword [esp + 0x1c]
add eax, 0x10
push eax
lea ecx, [esp + 0x70]
call fcn.00402990
mov ebx, 1
mov byte [esp + 0x98], bl
cmp dword [esp + 0x80], 0xa
jne 0x41cdca
lea ecx, [esp + 0x6c]
call fcn.00402af0
cmp byte [eax], 0x30
jne 0x41cdca
cmp dword [esp + 0x80], ebx
jae 0x41cd5c
call fcn.004bdd0a
lea ecx, [esp + 0x6c]
call fcn.00402af0
add eax, ebx
cmp byte [eax], 0x78
jne 0x41cdca
push 0x10
push 0
lea ecx, [esp + 0x74]
call fcn.00402c60
push eax
call fcn.004c4725
add esp, 0xc
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push str._I32u
call fcn.004023d0
lea edi, [esp + 0x70]
call fcn.00421ec0
add esp, 0x20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xa4], 2
call fcn.004028d0
mov ecx, edi
mov byte [esp + 0x98], bl
call fcn.00402be0
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.00419420
test al, al
je 0x41ce01
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.00402990
mov ecx, edi
call fcn.00419330
lea ecx, [esp + 0x18]
call fcn.004020c0
test al, al
jne 0x41ce30
call fcn.004bdd0a
lea ecx, [esp + 0x18]
call fcn.00402090
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x18]
jne 0x41ce47
call fcn.004bdd0a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
add edx, 0x30
push edx
push edi
call fcn.0041e090
lea ecx, [esp + 0x6c]
test al, al
je 0x41ce7c
mov byte [esp + 0x98], 0
call fcn.00402be0
lea esi, [esp + 0x18]
call fcn.00415e70
jmp 0x41ccb0
call fcn.00402be0
mov dword [esp + 0x98], 0xffffffff
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.Variant.0
call fcn.00416540
xor al, al
jmp 0x41ceec
mov eax, 3
mov esi, edi
call fcn.00419420
test al, al
je 0x41cece
mov eax, dword [edi + 4]
add eax, dword [edi + 0xc]
mov cx, word [0x5505bc]
mov word [eax], cx
mov dl, byte [0x5505be]
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.00416540
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.004bd72f
mov esp, ebp
pop ebp
ret 8