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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448195
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push esi
push edi
mov eax, dword [0x461de0]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x8c], ebx
call fcn.00422401
push 7
pop edi
push 5
pop eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
lea eax, [esp + 0x98]
xor esi, esi
push eax
push dword [ebx + 0x20]
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call dword [sym.imp.USER32.dll_MapDialogRect]
lea eax, [esp + 0xec]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [ebx + 0xb0]
mov eax, ecx
shr eax, 8
and eax, 0xf
mov edx, ecx
and edx, 0xf
mov dword [esp + 0x94], eax
mov eax, edi
cmp eax, edx
sbb eax, eax
shr ecx, 4
and ecx, 0xf
not eax
and eax, edx
push 5
pop edx
cmp edx, ecx
sbb edx, edx
not edx
and edx, ecx
mov ecx, eax
shl ecx, 2
mov dword [esp + 0x20], ecx
mov ecx, dword [ecx + 0x453430]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x45344c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x94], ecx
mov dword [esp + 0x48], edx
jl 0x40d9d1
mov dword [esp + 0x94], esi
shl eax, 4
add eax, 0x453468
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x4534d8]
mov dword [ebx + 0xb4], eax
mov eax, dword [edx*4 + 0x4534f4]
push ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x54], eax
call fcn.004239ce
mov dword [esp + 0x148], esi
lea eax, [esp + 0x100]
push eax
push dword [esp + 0x84]
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esp + 0x114]
imul eax, eax, 0x2d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x100]
imul eax, eax, 3
add eax, dword [esp + 0xf8]
lea ecx, [ebx + 0xbc]
add eax, dword [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x78]
push eax
push str.Tahoma
push 0x78
call fcn.0042be22
test eax, eax
jne 0x40da68
jmp fcn.0040c16e
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0x34], esi
mov byte [esp + 0x148], 1
cmp dword [esp + 0x48], esi
je 0x40db81
push edi
push edi
push edi
push edi
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esp + 0xcc]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_MapDialogRect]
push 0x54
call fcn.0041c6f6
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 2
cmp eax, esi
je 0x40dae1
push eax
call fcn.0040e9be
mov dword [esp + 0x1c], eax
jmp 0x40dae7
mov dword [esp + 0x1c], esi
mov eax, esi
mov byte [esp + 0x148], 1
mov edx, dword [eax]
mov edi, 0xffff
push edi
push ebx
lea ecx, [esp + 0xd4]
push ecx
push 0x54000803
push esi
mov ecx, eax
mov dword [esp + 0x48], eax
call dword [edx + 0x134]
push dword [esp + 0x50]
push esi
call dword [sym.imp.USER32.dll_LoadIconW]
push esi
push eax
mov eax, dword [esp + 0x24]
push 0x170
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0xcc]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0xcc]
push eax
mov ecx, ebx
call fcn.004237d7
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xcc]
sub ecx, eax
add ecx, dword [esp + 0xa0]
mov dword [esp + 0x40], eax
add dword [esp + 0x14], ecx
jmp 0x40db86
mov edi, 0xffff
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x148], 3
mov eax, dword [ebx + 0xc8]
mov eax, dword [eax - 0xc]
cmp eax, esi
je 0x40dd0a
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov ecx, eax
mov eax, dword [esp + 0x78]
call dword [eax + 0x1c]
mov dword [esp + 0x28], eax
mov byte [esp + 0x148], 4
lea eax, [ebx + 0xbc]
push eax
lea ecx, [esp + 0x7c]
call fcn.00423c4b
push edi
push dword [esp + 0x18]
lea eax, [esp + 0xc4]
push esi
push esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx + 0xc8]
mov ecx, dword [eax - 0xc]
push 0xc10
lea edx, [esp + 0xc0]
push edx
push ecx
push eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x88]
call dword [eax + 0x68]
cmp dword [esp + 0x34], esi
push dword [esp + 0x9c]
je 0x40dc4a
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x9c]
add eax, ecx
push eax
jmp 0x40dc51
push dword [esp + 0x9c]
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x14]
add eax, ecx
push 0x54
mov dword [esp + 0xc8], eax
call fcn.0041c6f6
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 5
cmp eax, esi
je 0x40dc97
push eax
call fcn.0040e9be
mov dword [esp + 0x2c], eax
jmp 0x40dc9d
mov dword [esp + 0x2c], esi
mov eax, esi
mov byte [esp + 0x148], 4
push edi
push ebx
lea ecx, [esp + 0xc4]
push ecx
push 0x54000080
push dword [ebx + 0xc8]
mov dword [ebx + 0xac], eax
mov edx, dword [eax]
mov ecx, eax
mov dword [esp + 0x30], eax
call dword [edx + 0x134]
push dword [esp + 0x2c]
lea eax, [ebx + 0xbc]
call fcn.0040e9a2
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x44], eax
mov byte [esp + 0x148], 3
push dword [esp + 0x28]
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x7c]
call dword [eax + 0x20]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe8], esi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x148], 6
mov eax, dword [ebx + 0xcc]
cmp dword [eax - 0xc], esi
je 0x40deaf
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
mov ecx, eax
mov eax, dword [esp + 0x78]
call dword [eax + 0x1c]
mov dword [esp + 0x28], eax
mov byte [esp + 0x148], 7
mov ecx, ebx
call fcn.00405f5c
push eax
lea ecx, [esp + 0x7c]
call fcn.00423c4b
push edi
push dword [esp + 0x18]
lea eax, [esp + 0xe4]
push esi
push esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx + 0xcc]
mov ecx, dword [eax - 0xc]
push 0xc10
lea edx, [esp + 0xe0]
push edx
push ecx
push eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x88]
call dword [eax + 0x68]
lea esi, [esp + 0x98]
lea edi, [esp + 0xa8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [esp + 0x1c], esi
je 0x40ddd9
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xc8]
add ecx, eax
jmp 0x40dde0
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0x34], esi
push ecx
je 0x40ddfa
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xac]
add eax, edx
push eax
jmp 0x40de01
push dword [esp + 0xac]
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x14]
add eax, ecx
push 0x54
mov dword [esp + 0xe8], eax
call fcn.0041c6f6
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 8
cmp eax, esi
je 0x40de43
push eax
call fcn.0040e9be
mov esi, eax
mov byte [esp + 0x148], 7
mov eax, dword [ebx + 0xcc]
mov edx, dword [esi]
push 0xffff
push ebx
lea ecx, [esp + 0xe4]
push ecx
push 0x54000080
push eax
mov ecx, esi
mov dword [esp + 0x40], esi
call dword [edx + 0x134]
mov ecx, ebx
call fcn.00405f5c
push esi
call fcn.0040e9a2
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x44], eax
mov byte [esp + 0x148], 6
push dword [esp + 0x28]
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x7c]
call dword [eax + 0x20]
xor esi, esi
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xa4]
lea eax, [ecx + eax + 1]
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
jge 0x40ded0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
push dword [ebx + 0x20]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], 0x32
mov dword [esp + 0x74], 0xe
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [esp + 0xf8]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x64]
lea edx, [eax + ecx]
add eax, ecx
mov ecx, dword [esp + 0x6c]
lea eax, [ecx + eax + 1]
lea edx, [edi + edx + 1]
lea ecx, [esp + 0x54]
mov dword [esp + 0x64], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x20], 1
call fcn.00401b37
mov byte [esp + 0x148], 9
mov eax, dword [esp + 0x4c]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x40e0ce
lea eax, [ebx + 0xd0]
mov dword [esp + 0x5c], eax
jmp 0x40df68
mov ebx, dword [esp + 0x8c]
xor esi, esi
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x68]
dec dword [esp + 0x14]
add eax, dword [esp + 0x70]
mov ecx, eax
sub ecx, dword [esp + 0x60]
mov dword [esp + 0x60], eax
add dword [esp + 0x68], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx*4]
push dword [edi]
lea ecx, [esp + 0x58]
mov dword [esp + 0x100], edi
call fcn.0040197e
test eax, eax
jne 0x40dfb9
mov eax, dword [edi]
push dword [eax*4 + 0x453504]
lea ecx, [esp + 0x58]
call fcn.0040163f
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x94], eax
mov dword [esp + 0x50], 0x54010f00
jne 0x40dfdc
mov eax, dword [edi]
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], 0x54010f01
mov dword [esp + 0x90], esi
mov byte [esp + 0x148], 0xa
push 0x54
call fcn.0041c6f6
mov edi, eax
pop ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0x148], 0xb
cmp edi, esi
je 0x40e024
mov ecx, edi
call fcn.0041e0e6
mov byte [esp + 0x148], 0xc
mov dword [edi], vtable.CButton.0
mov byte [esp + 0x148], 0xb
jmp 0x40e026
xor edi, edi
mov byte [esp + 0x148], 0xa
mov ecx, dword [esp + 0xfc]
push dword [ecx]
mov eax, dword [edi]
push ebx
lea ecx, [esp + 0x68]
push ecx
push dword [esp + 0x5c]
mov ecx, edi
push dword [esp + 0x64]
mov dword [esp + 0xa4], edi
call dword [eax + 0x134]
mov ecx, ebx
call fcn.00405f5c
push edi
call fcn.0040e9a2
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x68]
mov dword [esp + 0x90], esi
sub eax, dword [esp + 0xec]
mov dword [esp + 0x74], edi
add dword [esp + 0x70], eax
mov byte [esp + 0x148], 0xd
mov eax, dword [esp + 0x5c]
lea ebx, [esp + 0x74]
call fcn.0040e6a7
mov byte [esp + 0x148], 0xa
mov ecx, dword [esp + 0x74]
xor esi, esi
cmp ecx, esi
je 0x40e0af
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esp + 0x74], esi
mov byte [esp + 0x148], 9
cmp dword [esp + 0x14], esi
mov dword [esp + 0x90], esi
jne 0x40df5f
xor esi, esi
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x6c]
add ecx, eax
mov eax, dword [esp + 0xa0]
add dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0xa8], vtable.CArray_struct_tagACCEL__struct_tagACCEL_const__.0
mov dword [esp + 0xac], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], esi
mov byte [esp + 0x148], 0xe
mov ebx, dword [esp + 0x4c]
add ebx, 2
lea esi, [esp + 0xa8]
call fcn.0040e720
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x24]
push eax
mov eax, edi
mov ecx, esi
mov byte [esp + 0x28], 1
mov word [esp + 0x2a], 0x70
mov word [esp + 0x2c], 9
call fcn.0040e842
mov esi, dword [esp + 0x8c]
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x40e18b
mov eax, dword [esi + 0xb4]
mov word [esp + 0x28], ax
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 1]
lea ecx, [esp + 0xac]
mov byte [esp + 0x28], 1
mov word [esp + 0x2a], 0x1b
call fcn.0040e842
lea ecx, [esp + 0x58]
call fcn.00401b37
mov byte [esp + 0x148], 0xf
mov edi, dword [esp + 0x30]
jmp 0x40e20b
lea eax, [esp + 0x58]
push eax
push dword [edi]
mov ecx, esi
call fcn.00421a29
push 0
push 0x26
lea ecx, [esp + 0x60]
call fcn.0040c11b
cmp eax, 0xffffffff
je 0x40e203
inc eax
push eax
lea ecx, [esp + 0x5c]
call fcn.0040c14d
movzx eax, ax
test ax, ax
je 0x40e203
mov edi, dword [edi]
push eax
call fcn.00432518
movzx eax, ax
mov word [esp + 0x2a], ax
pop ecx
lea eax, [esp + 0x24]
push eax
mov eax, ebx
lea ecx, [esp + 0xac]
mov byte [esp + 0x28], 1
mov word [esp + 0x2c], di
call fcn.0040e842
mov eax, dword [esp + 0x30]
inc ebx
lea edi, [eax + ebx*4]
cmp dword [edi], 0
jne 0x40e1a2
push dword [esp + 0xb0]
push dword [esp + 0xb0]
call dword [sym.imp.USER32.dll_CreateAcceleratorTableW]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
mov dword [esi + 0xe0], eax
mov eax, dword [esp + 0x40]
inc eax
dec ecx
dec edx
inc edi
push edi
mov edi, dword [sym.imp.USER32.dll_SetRect]
push eax
push ecx
push edx
lea ebx, [esi + 0x74]
push ebx
call edi
mov eax, dword [esp + 0x44]
mov ecx, dword [esi + 0x7c]
mov ebx, dword [ebx]
inc eax
push eax
push ecx
push dword [esp + 0x50]
lea eax, [esi + 0x84]
push ebx
push eax
call edi
mov ecx, esi
call fcn.00422b78
push eax
xor edi, edi
push edi
mov ecx, esi
call fcn.00422b5e
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push esi
lea eax, [esp + 0x3c]
call fcn.00405f0c
push edi
mov ecx, esi
call fcn.0041edc0
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0042650b
xor ecx, ecx
cmp dword [esp + 0x18], edi
sete cl
push ecx
push 0xf060
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ebx, dword [esi + 0x20]
mov ecx, esi
call fcn.00422b5e
cmp dword [esp + 0x18], edi
je 0x40e2d7
or eax, 0x80000
jmp 0x40e2dc
and eax, 0xfff7ffff
push eax
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [esi + 0xc4]
mov ecx, esi
call fcn.00422bbc
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], eax
mov byte [esp + 0x148], 0x10
lea edi, [esi + 0xd0]
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0040e6a7
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40e32f
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
mov dword [esp + 0x30], eax
mov byte [esp + 0x148], 0x11
lea ebx, [esp + 0x30]
mov eax, edi
call fcn.0040e6a7
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40e36b
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esp + 0x2c]
and dword [esp + 0x30], 0
and dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
mov byte [esp + 0x148], 0x12
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0040e6a7
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x18]
xor ebx, ebx
cmp ecx, ebx
je 0x40e3a9
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.00422a9e
mov ecx, eax
call fcn.00422cb3
push ebx
push dword [esp + 0x24]
push 0x401
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [esp + 0x148], 0xe
lea ecx, [esp + 0x58]
call fcn.00401b6e
mov byte [esp + 0x148], 9
cmp dword [esp + 0xac], ebx
mov dword [esp + 0xa8], vtable.CArray_struct_tagACCEL__struct_tagACCEL_const__.0
je 0x40e40c
push dword [esp + 0xac]
call fcn.0041c726
pop ecx
mov byte [esp + 0x148], 6
lea ecx, [esp + 0x54]
call fcn.00401b6e
mov byte [esp + 0x148], 3
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x148], 1
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x148], bl
mov dword [esp + 0x34], ebx
or dword [esp + 0x148], 0xffffffff
lea ecx, [esp + 0x78]
call fcn.00423a22
xor eax, eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret