Function at 0x40d0d0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43930d
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x28], edi
push 0
lea eax, [esp + 0x88]
push str.CDlgSelectTarget::OnInitDialog
push eax
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x138], 0
mov ecx, edi
call fcn.0040a8c0
mov ebp, dword [0x451ed4]
push 0x43fa9c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebp
call fcn.00404c50
mov ebx, 1
mov byte [esp + 0x138], bl
push 0x43fa9c
lea ecx, [esp + 0x20]
call fcn.00404c50
mov byte [esp + 0x138], 2
lea ecx, [esp + 0x20]
push ecx
push ebp
call fcn.00413d30
mov byte [esp + 0x138], 3
mov ecx, ebp
call fcn.00413e20
mov ecx, dword [esp + 0x20]
cmp dword [ecx - 4], ebx
mov esi, eax
jle 0x40d1a2
mov edx, dword [ecx - 0xc]
push edx
lea ecx, [esp + 0x24]
call fcn.00404330
mov ecx, dword [esp + 0x20]
call fcn.0040aac0
test eax, eax
je 0x40d270
test esi, esi
jle 0x40d270
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], ebx
jle 0x40d1d1
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00404330
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esi + esi*4]
add ecx, ecx
push eax
lea ebx, [edi + 0x80]
push ecx
mov ecx, ebx
call fcn.0041f939
test eax, eax
je 0x40d270
mov dword [esp + 0x58], 0xbbb
mov dword [esp + 0x5c], 0xbbc
mov dword [esp + 0x60], 0xbbd
mov dword [esp + 0x64], 0xbbe
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], 2
xor esi, esi
mov edx, dword [esp + esi*4 + 0x58]
push edx
mov ecx, edi
call fcn.0041f419
test eax, eax
je 0x40d24b
test ebx, ebx
jne 0x40d239
xor ecx, ecx
jmp 0x40d23c
mov ecx, dword [ebx + 4]
mov eax, dword [eax + 0x20]
push 1
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 1
cmp esi, 6
jb 0x40d221
test ebx, ebx
jne 0x40d25b
xor eax, eax
jmp 0x40d25e
mov eax, dword [ebx + 4]
mov ecx, dword [edi + 0xac]
push 1
push eax
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x70]
call fcn.0041fba6
mov byte [esp + 0x138], 4
lea edx, [esp + 0x8c]
push edx
call fcn.004111b0
mov byte [esp + 0x138], 5
push 0x43fa9c
lea ecx, [esp + 0x28]
call fcn.00404c50
mov byte [esp + 0x138], 6
lea eax, [esp + 0x70]
push eax
mov ecx, ebp
call fcn.004137e0
xor ecx, ecx
test eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ecx
jg 0x40d335
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004136f0
mov byte [esp + 0x138], 0xf
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40d729
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40d71b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d71b
push eax
call fcn.00404be0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40d325
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x40d729
mov ecx, dword [esp + 0x34]
test ecx, ecx
jl 0x40d716
cmp ecx, dword [esp + 0x78]
jge 0x40d716
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + ecx*4]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40d3a3
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40d395
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40d395
push eax
call fcn.00404be0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40d38c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x1c], ebp
jmp 0x40d3a3
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404ad0
mov esi, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov ebx, esp
mov dword [esp + 0x3c], esp
mov dword [esp + 0x34], ebx
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40d3d9
cmp eax, dword [esi]
jne 0x40d3d9
mov ebp, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40d414
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebp, eax
test ebp, ebp
je 0x40d707
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebp + 0x10]
push eax
call fcn.00423145
add esp, 0x10
add ebp, 0x10
mov dword [ebx], ebp
mov byte [esp + 0x13c], 8
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x58]
push ecx
push edx
mov byte [esp + 0x144], 6
call fcn.00413ad0
mov byte [esp + 0x138], 9
mov eax, dword [eax]
push eax
push 0x451ab0
lea ecx, [esp + 0x2c]
push 0x43fe0c
push ecx
call fcn.00409c70
add esp, 0x10
mov byte [esp + 0x138], 6
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d482
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x24]
cmp dword [edx - 4], 1
jle 0x40d49d
mov ecx, dword [edx - 0xc]
push ecx
lea ecx, [esp + 0x28]
call fcn.00404330
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x8c]
call fcn.00411500
cmp eax, 0x800000
jne 0x40d6e9
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.00411ad0
mov esi, eax
mov byte [esp + 0x138], 0xb
mov eax, dword [esp + 0x1c]
mov edi, 1
cmp dword [eax - 4], edi
jle 0x40d4ef
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404330
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], edi
jle 0x40d508
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00404330
mov esi, dword [esi]
mov ebp, dword [esp + 0x28]
push esi
add ebp, 0xe0
call fcn.00416d50
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x44], eax
div edi
cmp dword [ebp + 4], 0
mov dword [esp + 0x30], edx
je 0x40d5a2
mov eax, dword [ebp + 4]
mov ecx, edx
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x40d5a2
jmp 0x40d540
mov edx, dword [esp + 0x44]
cmp dword [ebx + 0xc], edx
jne 0x40d59b
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x40d70c
mov eax, dword [ebx]
mov ecx, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d586
test dx, dx
je 0x40d582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d586
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d560
xor eax, eax
jmp 0x40d58b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
movzx eax, al
test eax, eax
jne 0x40d62b
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40d540
mov eax, dword [ebp + 4]
test eax, eax
jne 0x40d5ec
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414d4f
xor ecx, ecx
add esp, 4
test eax, eax
setne cl
mov dword [ebp + 4], eax
test ecx, ecx
je 0x40d716
lea ecx, [edi*4]
push ecx
push 0
push eax
call fcn.004250c0
add esp, 0xc
mov dword [ebp + 8], edi
xor eax, eax
cmp dword [ebp + 4], eax
setne al
test eax, eax
je 0x40d716
push esi
mov esi, ebp
call fcn.0040e7b0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 4]
mov edx, dword [edx + ecx*4]
mov dword [eax + 8], edx
mov edx, dword [ebp + 4]
mov dword [edx + ecx*4], eax
lea ecx, [eax + 4]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40d62f
jmp 0x40d641
mov eax, ebx
jmp 0x40d61e
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40d632
sub eax, esi
sar eax, 1
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.00404ad0
mov byte [esp + 0x138], 6
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d674
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.00411ad0
mov esi, eax
mov byte [esp + 0x138], 0xd
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x40d6a6
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00404330
mov esi, dword [esi]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0xac]
push esi
push 0
push 0x180
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x138], 6
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d6e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x34], eax
jl 0x40d331
mov ebp, dword [esp + 0x2c]
jmp 0x40d2c6
jmp fcn.00404230
push 0x80004005
call fcn.004043f0
jmp fcn.004172e8
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00404ad0
mov byte [esp + 0x138], 6
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d751
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x40d76c
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404330
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
push eax
push 0xbbb
mov ecx, edi
call fcn.0041f461
mov edx, dword [edi + 0xac]
push edx
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0041f118
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
mov esi, eax
mov eax, dword [edi + 0xac]
push 0x31
push eax
call ebp
push eax
call fcn.0041f2ab
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov edx, dword [esi + 8]
lea ecx, [esp + 0xf0]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [edi + 0xac]
push ebx
push ebx
push 0x18b
push eax
call ebp
xor ebp, ebp
test eax, eax
mov dword [esp + 0x40], eax
jle 0x40d836
add edi, 0x8c
lea esp, [esp]
lea ecx, [esp + 0x18]
push ecx
push ebp
mov ecx, edi
call fcn.0041fb6f
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x48]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [esp + 0x104]
mov edx, dword [esp + 0x48]
lea eax, [edx + ecx]
cmp ebx, eax
jge 0x40d829
mov ebx, eax
add ebp, 1
cmp ebp, dword [esp + 0x40]
jl 0x40d7f0
mov edi, dword [esp + 0x28]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0xac]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [edi + 0xac]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push ebx
push 0x194
push edx
call esi
lea eax, [esp + 0x3c]
push eax
call fcn.004066b0
mov byte [esp + 0x138], 0x11
mov ecx, dword [esp + 0x3c]
cmp dword [ecx - 0xc], 0
je 0x40d938
mov eax, dword [edi + 0xec]
neg eax
sbb eax, eax
mov dword [esp + 0x2c], eax
je 0x40d8fb
lea ebx, [edi + 0xe0]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0040e320
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x40d70c
mov eax, dword [esp + 0x3c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d8e6
test dx, dx
je 0x40d8e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d8e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d8c0
xor eax, eax
jmp 0x40d8eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40d8fb
cmp dword [esp + 0x2c], 0
jne 0x40d894
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x40d916
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404330
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [edi + 0xac]
push 0
push 0x1a2
push eax
call esi
mov ecx, dword [edi + 0xac]
push 0
push eax
push 0x186
push ecx
call esi
mov esi, edi
call fcn.0040e170
mov byte [esp + 0x138], 6
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d967
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 5
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d98f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 4
lea ecx, [esp + 0x8c]
call fcn.004113c0
mov byte [esp + 0x138], 3
lea ecx, [esp + 0x70]
call fcn.0041fd78
mov byte [esp + 0x138], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x138], 0xffffffff
lea ecx, [esp + 0x84]
call fcn.00405a70
xor eax, eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret