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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x451911
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push esi
push edi
mov eax, dword [0x46ed08]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x8c], ebx
call fcn.00425e58
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 + 0x45b1b0]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x45b1cc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x94], ecx
mov dword [esp + 0x48], edx
jl 0x40b88a
mov dword [esp + 0x94], esi
shl eax, 4
add eax, 0x45b1e8
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x45b258]
mov dword [ebx + 0xb4], eax
mov eax, dword [edx*4 + 0x45b274]
push ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x54], eax
call fcn.0042be66
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.004307f2
test eax, eax
jne 0x40b921
jmp fcn.00409bf0
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 0x40ba3a
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.004253aa
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 2
cmp eax, esi
je 0x40b99a
push eax
call fcn.0040c88b
mov dword [esp + 0x1c], eax
jmp 0x40b9a0
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.0042bc6f
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 0x40ba3f
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 0x40bbc3
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.0042c0e3
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 0x40bb03
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x9c]
add eax, ecx
push eax
jmp 0x40bb0a
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.004253aa
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 5
cmp eax, esi
je 0x40bb50
push eax
call fcn.0040c88b
mov dword [esp + 0x2c], eax
jmp 0x40bb56
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.0040c86c
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 0x40bd68
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.0040462e
push eax
lea ecx, [esp + 0x7c]
call fcn.0042c0e3
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 0x40bc92
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xc8]
add ecx, eax
jmp 0x40bc99
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0x34], esi
push ecx
je 0x40bcb3
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xac]
add eax, edx
push eax
jmp 0x40bcba
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.004253aa
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 8
cmp eax, esi
je 0x40bcfc
push eax
call fcn.0040c88b
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.0040462e
push esi
call fcn.0040c86c
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 0x40bd89
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.00401b4d
mov byte [esp + 0x148], 9
mov eax, dword [esp + 0x4c]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x40bf87
lea eax, [ebx + 0xd0]
mov dword [esp + 0x5c], eax
jmp 0x40be21
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.00401989
test eax, eax
jne 0x40be72
mov eax, dword [edi]
push dword [eax*4 + 0x45b284]
lea ecx, [esp + 0x58]
call fcn.0040166a
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x94], eax
mov dword [esp + 0x50], 0x54010f00
jne 0x40be95
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.004253aa
mov edi, eax
pop ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0x148], 0xb
cmp edi, esi
je 0x40bedd
mov ecx, edi
call fcn.00427a9b
mov byte [esp + 0x148], 0xc
mov dword [edi], vtable.CButton.0
mov byte [esp + 0x148], 0xb
jmp 0x40bedf
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.0040462e
push edi
call fcn.0040c86c
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.0040c54c
mov byte [esp + 0x148], 0xa
mov ecx, dword [esp + 0x74]
xor esi, esi
cmp ecx, esi
je 0x40bf68
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 0x40be18
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.0040c586
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.0040c6a8
mov esi, dword [esp + 0x8c]
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x40c044
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.0040c6a8
lea ecx, [esp + 0x58]
call fcn.00401b4d
mov byte [esp + 0x148], 0xf
mov edi, dword [esp + 0x30]
jmp 0x40c0c4
lea eax, [esp + 0x58]
push eax
push dword [edi]
mov ecx, esi
call fcn.0042b2df
push 0
push 0x26
lea ecx, [esp + 0x60]
call fcn.0040c819
cmp eax, 0xffffffff
je 0x40c0bc
inc eax
push eax
lea ecx, [esp + 0x5c]
call fcn.0040c7f5
movzx eax, ax
test ax, ax
je 0x40c0bc
mov edi, dword [edi]
push eax
call fcn.00437ec9
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.0040c6a8
mov eax, dword [esp + 0x30]
inc ebx
lea edi, [eax + ebx*4]
cmp dword [edi], 0
jne 0x40c05b
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.00426560
push eax
xor edi, edi
push edi
mov ecx, esi
call fcn.00426546
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push esi
lea eax, [esp + 0x3c]
call fcn.004045db
push edi
mov ecx, esi
call fcn.00428775
push edi
mov ecx, esi
call fcn.0040b396
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.00426546
cmp dword [esp + 0x18], edi
je 0x40c188
or eax, 0x80000
jmp 0x40c18d
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.004265a4
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.0040c54c
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40c1e0
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.0040c54c
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40c21c
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.0040c54c
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x18]
xor ebx, ebx
cmp ecx, ebx
je 0x40c25a
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.00426486
mov ecx, eax
call fcn.0042669b
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.00401b87
mov byte [esp + 0x148], 9
cmp dword [esp + 0xac], ebx
mov dword [esp + 0xa8], vtable.CArray_struct_tagACCEL__struct_tagACCEL_const__.0
je 0x40c2bd
push dword [esp + 0xac]
call fcn.004253d5
pop ecx
mov byte [esp + 0x148], 6
lea ecx, [esp + 0x54]
call fcn.00401b87
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.0042beba
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