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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44707e
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push esi
push edi
mov eax, dword [0x45fd70]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x8c], ebx
call fcn.0041bd33
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 + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 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 + 0x452090]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x4520ac]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x94], ecx
mov dword [esp + 0x48], edx
jl 0x40cdf9
mov dword [esp + 0x94], esi
shl eax, 4
add eax, 0x4520c8
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x452138]
mov dword [ebx + 0xb4], eax
mov eax, dword [edx*4 + 0x452154]
push ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x54], eax
call fcn.00422be4
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.0042b010
test eax, eax
jne 0x40ce90
jmp fcn.0040b067
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0x44], esi
mov byte [esp + 0x148], 1
cmp dword [esp + 0x48], esi
je 0x40cfa9
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.0041b646
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 2
cmp eax, esi
je 0x40cf09
push eax
call fcn.0040de7d
mov dword [esp + 0x1c], eax
jmp 0x40cf0f
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 + 0x58], 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.004229ed
mov ecx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xcc]
sub ecx, eax
add ecx, dword [esp + 0xa0]
mov dword [esp + 0x3c], eax
add dword [esp + 0x14], ecx
jmp 0x40cfae
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 0x40d132
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.00422e61
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 + 0x44], esi
push dword [esp + 0x9c]
je 0x40d072
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x9c]
add eax, ecx
push eax
jmp 0x40d079
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.0041b646
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 5
cmp eax, esi
je 0x40d0bf
push eax
call fcn.0040de7d
mov dword [esp + 0x2c], eax
jmp 0x40d0c5
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.0040de61
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x40], 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 0x40d2d7
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.004026f6
push eax
lea ecx, [esp + 0x7c]
call fcn.00422e61
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 0x40d201
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xc8]
add ecx, eax
jmp 0x40d208
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0x44], esi
push ecx
je 0x40d222
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xac]
add eax, edx
push eax
jmp 0x40d229
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.0041b646
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 8
cmp eax, esi
je 0x40d26b
push eax
call fcn.0040de7d
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.004026f6
push esi
call fcn.0040de61
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x40], 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 + 0x40]
mov eax, dword [esp + 0xa4]
lea eax, [ecx + eax + 1]
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
jge 0x40d2f8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
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 + 0x40]
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.00401ae0
mov byte [esp + 0x148], 9
mov eax, dword [esp + 0x4c]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x40d4f6
lea eax, [ebx + 0xd0]
mov dword [esp + 0x5c], eax
jmp 0x40d390
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.00401958
test eax, eax
jne 0x40d3e1
mov eax, dword [edi]
push dword [eax*4 + 0x452164]
lea ecx, [esp + 0x58]
call fcn.00401648
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x94], eax
mov dword [esp + 0x50], 0x54010f00
jne 0x40d404
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.0041b646
mov edi, eax
pop ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0x148], 0xb
cmp edi, esi
je 0x40d44c
mov ecx, edi
call fcn.0041d97c
mov byte [esp + 0x148], 0xc
mov dword [edi], vtable.CButton.0
mov byte [esp + 0x148], 0xb
jmp 0x40d44e
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.004026f6
push edi
call fcn.0040de61
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.0040dad7
mov byte [esp + 0x148], 0xa
mov ecx, dword [esp + 0x74]
xor esi, esi
cmp ecx, esi
je 0x40d4d7
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 0x40d387
xor esi, esi
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x6c]
add ecx, eax
mov eax, dword [esp + 0xa0]
add dword [esp + 0x3c], eax
mov dword [esp + 0x40], 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.0040db50
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.0040dc72
mov esi, dword [esp + 0x8c]
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x40d5b3
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.0040dc72
lea ecx, [esp + 0x58]
call fcn.00401ae0
mov byte [esp + 0x148], 0xf
mov edi, dword [esp + 0x30]
jmp 0x40d633
lea eax, [esp + 0x58]
push eax
push dword [edi]
mov ecx, esi
call fcn.004212bf
push 0
push 0x26
lea ecx, [esp + 0x60]
call fcn.0040afbf
cmp eax, 0xffffffff
je 0x40d62b
inc eax
push eax
lea ecx, [esp + 0x5c]
call fcn.004057de
movzx eax, ax
test ax, ax
je 0x40d62b
mov edi, dword [edi]
push eax
call fcn.0042fd9a
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.0040dc72
mov eax, dword [esp + 0x30]
inc ebx
lea edi, [eax + ebx*4]
cmp dword [edi], 0
jne 0x40d5ca
push dword [esp + 0xb0]
push dword [esp + 0xb0]
call dword [sym.imp.USER32.dll_CreateAcceleratorTableW]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x48]
mov dword [esi + 0xe0], eax
mov eax, dword [esp + 0x3c]
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 + 0x40]
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.0041c43b
push eax
xor edi, edi
push edi
mov ecx, esi
call fcn.0041c421
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push 1
push eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov ecx, esi
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.0041c4db
push edi
mov ecx, esi
call fcn.0041e656
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.004243d8
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.0041c421
cmp dword [esp + 0x18], edi
je 0x40d718
or eax, 0x80000
jmp 0x40d71d
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.0041c47f
mov eax, dword [esp + 0x44]
mov dword [esp + 0x44], edi
mov dword [esp + 0x18], eax
mov byte [esp + 0x148], 0x10
lea edi, [esi + 0xd0]
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0040dad7
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40d770
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.0040dad7
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40d7ac
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.0040dad7
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x18]
xor ebx, ebx
cmp ecx, ebx
je 0x40d7ea
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.0041c361
mov ecx, eax
call fcn.0041c576
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.00401b17
mov byte [esp + 0x148], 9
cmp dword [esp + 0xac], ebx
mov dword [esp + 0xa8], vtable.CArray_struct_tagACCEL__struct_tagACCEL_const__.0
je 0x40d84d
push dword [esp + 0xac]
call fcn.0041b676
pop ecx
mov byte [esp + 0x148], 6
lea ecx, [esp + 0x54]
call fcn.00401b17
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 + 0x44], ebx
or dword [esp + 0x148], 0xffffffff
lea ecx, [esp + 0x78]
call fcn.00422c38
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