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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435466
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x443630]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
mov eax, dword [0x443630]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
sub eax, 0x1f4
js 0x41d93e
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
sub eax, 0x1f4
cmp eax, 0x64
jg 0x41d93e
xor ebx, ebx
mov dword [esp + 0x20], vtable.StLibs::IOB.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0x6400000
mov dword [esp + 0x34], 1
mov dword [esp + 0x198], ebx
mov esi, 0xf
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov byte [esp + 0x198], 2
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push ebx
mov ecx, edi
call edx
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x41d966
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov edi, 0x10
cmp dword [esp + 0x84], edi
jb 0x41d919
mov eax, dword [esp + 0x70]
push eax
call fcn.004200ee
add esp, 4
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp dword [esp + 0x68], edi
jb 0x41d93e
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004200ee
add esp, 4
xor al, al
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0041f152
mov esp, ebp
pop ebp
ret 4
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx + 8]
push ebx
push ebx
push ebx
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push ebx
mov ecx, esi
call eax
push ebx
mov ebx, eax
lea esi, [esp + 0x28]
call fcn.00412c30
test al, al
jne 0x41d9c2
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [esp + 0x70]
call fcn.004026e0
lea ecx, [esp + 0x54]
call fcn.004026e0
lea ecx, [esp + 0x20]
call fcn.00412c00
jmp 0x41d93e
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov edx, dword [ecx]
mov ebx, dword [esp + 0x24]
mov eax, dword [edx + 0xc]
push esi
push ebx
call eax
cmp eax, esi
je 0x41d9e4
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
jmp 0x41d9a0
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x54]
mov dword [esp + 0x18], esi
cmp eax, 1
jne 0x41da16
push esi
lea ecx, [esp + 0x58]
mov edx, ebx
call fcn.0041ce60
test al, al
jne 0x41e03e
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
jmp 0x41e03e
cmp eax, 2
je 0x41da24
cmp eax, 3
jne 0x41e03e
cmp esi, 3
jb 0x41d9db
mov cl, byte [ebx]
mov dword [esp + 0x1c], ebx
cmp eax, 3
jne 0x41da36
mov cl, 5
movsx eax, cl
sub eax, 4
je 0x41dd90
dec eax
jne 0x41d9db
cmp dword [edx + 0x58], 2
jne 0x41e03e
movsx eax, byte [ebx + 1]
dec eax
je 0x41dbf9
dec eax
jne 0x41e03e
cmp byte [ebx + 2], al
jne 0x41e03e
cmp esi, 5
jb 0x41e03e
movsx eax, byte [ebx + 3]
dec eax
je 0x41db95
sub eax, 2
je 0x41db11
dec eax
jne 0x41e03e
cmp esi, 0x16
jl 0x41e03e
mov edx, dword [ebx + 4]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 8]
mov ecx, 0x17
mov word [esp + 0x38], cx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x40], edx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x44], eax
mov ax, word [ebx + 0x14]
lea edi, [esp + 0x38]
lea esi, [esp + 0x118]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov word [esp + 0x3a], ax
call fcn.004126e0
mov edi, eax
lea esi, [esp + 0x70]
mov byte [esp + 0x198], 0xc
call fcn.00403e40
lea ecx, [esp + 0x118]
jmp 0x41e02d
movsx eax, byte [ebx + 4]
lea ecx, [eax + 7]
cmp esi, ecx
jl 0x41e03e
lea ecx, [eax + ebx + 5]
lea edx, [ebx + 5]
lea esi, [esp + 0xe0]
call fcn.0041cb70
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x198], 0xb
call fcn.00403e40
lea ecx, [esp + 0xe0]
mov byte [esp + 0x198], 2
call fcn.004026e0
movsx edx, byte [ebx + 4]
movzx eax, word [edx + ebx + 5]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push eax
push 0x43da00
lea ecx, [esp + 0x40]
push 0xa
push ecx
call fcn.00420fc4
add esp, 0x10
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x3c]
call fcn.00408580
jmp 0x41e03a
cmp esi, 0xa
jl 0x41e03e
mov ecx, dword [ebx + 4]
mov dx, word [ebx + 8]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, 2
lea edi, [esp + 0x38]
lea esi, [esp + 0x150]
mov word [esp + 0x38], ax
mov dword [esp + 0x3c], ecx
mov word [esp + 0x3a], dx
call fcn.004126e0
mov edi, eax
lea esi, [esp + 0x70]
mov byte [esp + 0x198], 0xa
call fcn.00403e40
lea ecx, [esp + 0x150]
jmp 0x41e02d
cmp byte [ebx + 2], 0
jne 0x41e03e
cmp esi, 5
jb 0x41e03e
movsx eax, byte [ebx + 3]
dec eax
je 0x41dd2c
sub eax, 2
je 0x41dcaa
dec eax
jne 0x41e03e
cmp esi, 0x16
jl 0x41e03e
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], eax
mov eax, 0x17
mov word [esp + 0x38], ax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x44], edx
mov dx, word [ebx + 0x14]
lea edi, [esp + 0x38]
lea esi, [esp + 0xa8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov word [esp + 0x3a], dx
call fcn.004126e0
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x198], 9
call fcn.00403e40
lea ecx, [esp + 0xa8]
jmp 0x41e02d
movsx eax, byte [ebx + 4]
lea ecx, [eax + 7]
cmp esi, ecx
jl 0x41e03e
lea ecx, [eax + ebx + 5]
lea edx, [ebx + 5]
lea esi, [esp + 0xc4]
call fcn.0041cb70
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x198], 8
call fcn.00403e40
lea ecx, [esp + 0xc4]
mov byte [esp + 0x198], 2
call fcn.004026e0
movsx edx, byte [ebx + 4]
movzx eax, word [edx + ebx + 5]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push eax
push 0x43da00
lea ecx, [esp + 0x40]
push 0xa
push ecx
call fcn.00420fc4
add esp, 0x10
mov edx, esi
push edx
lea eax, [esp + 0x3c]
call fcn.00408580
jmp 0x41e03a
cmp esi, 0xa
jl 0x41e03e
mov ecx, dword [ebx + 4]
mov dx, word [ebx + 8]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, 2
lea edi, [esp + 0x38]
lea esi, [esp + 0xfc]
mov word [esp + 0x38], ax
mov dword [esp + 0x3c], ecx
mov word [esp + 0x3a], dx
call fcn.004126e0
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x198], 7
call fcn.00403e40
lea ecx, [esp + 0xfc]
jmp 0x41e02d
movsx eax, byte [ebx + 1]
dec eax
je 0x41dee7
dec eax
jne 0x41e03e
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], eax
mov byte [esp + 0x8c], al
mov byte [esp + 0x198], 5
cmp esi, 9
jae 0x41ddd9
lea ecx, [esp + 0x8c]
call fcn.004026e0
jmp 0x41d9a2
mov edi, 8
cmp esi, edi
jle 0x41ddff
cmp byte [ebx + edi], 0
je 0x41ddef
inc edi
cmp edi, esi
jl 0x41dde2
jmp 0x41ddff
lea eax, [edi + 1]
lea esi, [esp + 0x20]
call fcn.00412d20
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
test dword [eax + 4], 0xffffff
jne 0x41de3d
inc edi
cmp edi, dword [esp + 0x18]
jge 0x41de3d
mov al, byte [ebx + edi]
test al, al
je 0x41de33
mov bl, al
lea esi, [esp + 0x8c]
call fcn.00402710
mov ebx, dword [esp + 0x24]
inc edi
cmp edi, dword [esp + 0x18]
jl 0x41de13
cmp dword [esp + 0x9c], 0
jne 0x41dea1
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov ax, word [eax + 2]
mov ecx, 2
lea edi, [esp + 0x38]
lea esi, [esp + 0x134]
mov word [esp + 0x38], cx
mov dword [esp + 0x3c], edx
mov word [esp + 0x3a], ax
call fcn.004126e0
mov edi, eax
lea esi, [esp + 0x70]
mov byte [esp + 0x198], 6
call fcn.00403e40
lea ecx, [esp + 0x134]
call fcn.004026e0
jmp 0x41e026
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x60]
call fcn.00403eb0
mov edx, dword [esp + 0x1c]
movzx eax, word [edx + 2]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
push ecx
push 0x43da00
lea edx, [esp + 0x40]
push 0xa
push edx
call fcn.00420fc4
add esp, 0x10
lea eax, [esp + 0x70]
push eax
jmp 0x41e01d
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
mov byte [esp + 0x198], 3
cmp esi, 9
jb 0x41ddc8
mov edi, 8
cmp esi, edi
jle 0x41df3d
nop
cmp byte [ebx + edi], 0
je 0x41df2d
inc edi
cmp edi, esi
jl 0x41df20
jmp 0x41df3d
lea eax, [edi + 1]
lea esi, [esp + 0x20]
call fcn.00412d20
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
test dword [ecx + 4], 0xffffff
jne 0x41df7b
inc edi
cmp edi, dword [esp + 0x18]
jge 0x41df7b
mov al, byte [ebx + edi]
test al, al
je 0x41df71
mov bl, al
lea esi, [esp + 0x8c]
call fcn.00402710
mov ebx, dword [esp + 0x24]
inc edi
cmp edi, dword [esp + 0x18]
jl 0x41df51
cmp dword [esp + 0x9c], 0
jne 0x41dfdc
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov edx, 2
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov word [esp + 0x38], dx
mov dx, word [eax + 2]
lea edi, [esp + 0x38]
lea esi, [esp + 0x16c]
mov dword [esp + 0x3c], ecx
mov word [esp + 0x3a], dx
call fcn.004126e0
mov edi, eax
lea esi, [esp + 0x54]
mov byte [esp + 0x198], 4
call fcn.00403e40
lea ecx, [esp + 0x16c]
call fcn.004026e0
jmp 0x41e026
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x60]
call fcn.00403eb0
mov ecx, dword [esp + 0x1c]
movzx edx, word [ecx + 2]
push edx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push eax
push 0x43da00
lea ecx, [esp + 0x40]
push 0xa
push ecx
call fcn.00420fc4
add esp, 0x10
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
call fcn.00408580
lea ecx, [esp + 0x8c]
mov byte [esp + 0x198], 2
call fcn.004026e0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x18], 1
jne 0x41e0c9
cmp dword [esp + 0x64], 0
je 0x41e069
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x5c]
push ecx
mov edx, eax
mov ecx, dword [edx + 8]
add ecx, 0x58
call fcn.00403eb0
cmp dword [esp + 0x80], 0
mov edi, dword [esp + 0x14]
je 0x41e08b
mov ecx, dword [edi + 8]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x78]
push eax
add ecx, 0x74
call fcn.00403eb0
mov ecx, dword [edi + 8]
push esi
push ebx
push 0
push 1
push edi
mov dword [edi + 0x60], 1
call fcn.004171c0
cmp eax, 4
lea ecx, [esp + 0x70]
setne bl
call fcn.004026e0
lea ecx, [esp + 0x54]
call fcn.004026e0
lea ecx, [esp + 0x20]
call fcn.00412c00
mov al, bl
jmp 0x41d940
cmp dword [esp + 0x64], 0
je 0x41e0e6
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x5c]
push ecx
mov edx, eax
mov ecx, dword [edx + 8]
add ecx, 0x74
call fcn.00403eb0
cmp dword [esp + 0x80], 0
mov edi, dword [esp + 0x14]
je 0x41e108
mov ecx, dword [edi + 8]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x78]
push eax
add ecx, 0x58
call fcn.00403eb0
mov ecx, dword [edi + 8]
push esi
push ebx
push 1
push 1
push edi
mov dword [edi + 0x60], 1
call fcn.004171c0
cmp eax, 4
lea ecx, [esp + 0x70]
setne bl
call fcn.004026e0
lea ecx, [esp + 0x54]
call fcn.004026e0
lea ecx, [esp + 0x20]
call fcn.00412c00
mov al, bl
jmp 0x41d940