Function at 0x41d390
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
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.00419420
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.00417610
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x34]
cmp eax, 1
je 0x41d433
cmp eax, 2
je 0x41d433
cmp eax, 0x12
je 0x41d42a
cmp eax, 0x13
jne 0x41d433
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x38]
jmp 0x41d435
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, eax
mov eax, 4
mov esi, edi
call fcn.00419420
test al, al
je 0x41d45a
mov eax, dword [edi + 4]
add eax, dword [edi + 0xc]
mov dword [eax], ebx
add dword [edi + 0xc], 4
mov esi, dword [0x554108]
lea ecx, [esp + 0x10]
call fcn.00402030
cmp dword [0x554108], esi
ja 0x41d479
cmp esi, dword [0x55410c]
jbe 0x41d47e
call fcn.004bdd0a
push 0x5540fc
lea ecx, [esp + 0x14]
call fcn.00402050
mov dword [esp + 0x14], esi
mov esi, dword [0x55410c]
lea ecx, [esp + 0x18]
call fcn.00402030
cmp dword [0x554108], esi
ja 0x41d4af
cmp esi, dword [0x55410c]
jbe 0x41d4b4
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 0x41d4e5
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402070
test al, al
jne 0x41d4ea
call fcn.004bdd0a
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
je 0x41d69a
lea ecx, [esp + 0x10]
call fcn.004020c0
test al, al
jne 0x41d50a
call fcn.004bdd0a
lea ecx, [esp + 0x10]
call fcn.00402090
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x41d521
call fcn.004bdd0a
mov edx, dword [esp + 0x14]
push edx
lea edi, [esp + 0x30]
call fcn.004171f0
test al, al
je 0x41d640
lea ecx, [esp + 0x10]
call fcn.004020c0
test al, al
jne 0x41d549
call fcn.004bdd0a
lea ecx, [esp + 0x10]
call fcn.00402090
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp eax, dword [ecx + 0x10]
jb 0x41d566
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 0x41d59d
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 0x41d5c5
call fcn.004bdd0a
lea ecx, [esp + 0x10]
call fcn.00402090
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x41d5dc
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 0x41d677
lea ecx, [esp + 0x10]
call fcn.004020c0
test al, al
jne 0x41d60b
call fcn.004bdd0a
lea ecx, [esp + 0x10]
call fcn.00402090
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0x10]
jb 0x41d622
call fcn.004bdd0a
mov eax, dword [esp + 0x34]
cmp eax, 0x12
je 0x41d630
cmp eax, 0x13
jne 0x41d640
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 0x41d652
call fcn.004bdd0a
lea ecx, [esp + 0x10]
call fcn.00402090
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0x10]
jb 0x41d669
call fcn.004bdd0a
add dword [esp + 0x14], 0x1c
mov edi, dword [esp + 0x24]
jmp 0x41d490
mov dword [esp + 0x98], 0xffffffff
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], vtable.Variant.0
call fcn.00416540
xor al, al
jmp 0x41d8d0
lea esi, [esp + 0x18]
lea ecx, [esp + 0x2c]
call fcn.00417490
or ebx, 0xffffffff
lea ebx, [ebx]
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 0x41d6da
push esi
lea ecx, [esp + 0x1c]
call fcn.00402070
test al, al
jne 0x41d6df
call fcn.004bdd0a
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 4]
je 0x41d889
lea ecx, [esp + 0x18]
call fcn.004020c0
test al, al
jne 0x41d6fe
call fcn.004bdd0a
lea ecx, [esp + 0x18]
call fcn.00402090
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x18]
jne 0x41d715
call fcn.004bdd0a
mov eax, dword [esp + 0x1c]
add eax, 0x10
push eax
lea ecx, [esp + 0x70]
call fcn.00402990
mov byte [esp + 0x98], 1
cmp dword [esp + 0x80], 0xa
jne 0x41d7c6
lea ecx, [esp + 0x6c]
call fcn.00402af0
cmp byte [eax], 0x30
jne 0x41d7c6
cmp dword [esp + 0x80], 1
jae 0x41d759
call fcn.004bdd0a
lea ecx, [esp + 0x6c]
call fcn.00402af0
inc eax
cmp byte [eax], 0x78
jne 0x41d7c6
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 ebx
push 0
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xa4], 2
call fcn.004028d0
mov ecx, edi
mov byte [esp + 0x98], 1
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 0x41d7fd
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 0x41d82c
call fcn.004bdd0a
lea ecx, [esp + 0x18]
call fcn.00402090
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x18]
jne 0x41d843
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 0x41d878
mov byte [esp + 0x98], 0
call fcn.00402be0
lea esi, [esp + 0x18]
call fcn.00415e70
jmp 0x41d6b0
call fcn.00402be0
mov dword [esp + 0x98], ebx
jmp 0x41d682
mov eax, 3
mov esi, edi
call fcn.00419420
test al, al
je 0x41d8b6
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], ebx
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 4