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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448fdf
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push esi
push edi
mov eax, dword [0x463e00]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x8c], ebx
call fcn.0042321d
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 + 0x454c28]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x454c44]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x94], ecx
mov dword [esp + 0x48], edx
jl 0x40ebc6
mov dword [esp + 0x94], esi
shl eax, 4
add eax, 0x454c60
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x454cd0]
mov dword [ebx + 0xb4], eax
mov eax, dword [edx*4 + 0x454cec]
push ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x54], eax
call fcn.00424758
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.0042cbc5
test eax, eax
jne 0x40ec5d
jmp fcn.0040d46c
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 0x40ed76
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.0041d4a6
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 2
cmp eax, esi
je 0x40ecd6
push eax
call fcn.0040fc0b
mov dword [esp + 0x1c], eax
jmp 0x40ecdc
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.00424561
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 0x40ed7b
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 0x40eeff
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.004249d5
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 0x40ee3f
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x9c]
add eax, ecx
push eax
jmp 0x40ee46
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.0041d4a6
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 5
cmp eax, esi
je 0x40ee8c
push eax
call fcn.0040fc0b
mov dword [esp + 0x2c], eax
jmp 0x40ee92
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.0040fbef
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 0x40f0a4
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.004026f2
push eax
lea ecx, [esp + 0x7c]
call fcn.004249d5
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 0x40efce
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xc8]
add ecx, eax
jmp 0x40efd5
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0x44], esi
push ecx
je 0x40efef
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xac]
add eax, edx
push eax
jmp 0x40eff6
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.0041d4a6
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 8
cmp eax, esi
je 0x40f038
push eax
call fcn.0040fc0b
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.004026f2
push esi
call fcn.0040fbef
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 0x40f0c5
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.00401b10
mov byte [esp + 0x148], 9
mov eax, dword [esp + 0x4c]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x40f2c3
lea eax, [ebx + 0xd0]
mov dword [esp + 0x5c], eax
jmp 0x40f15d
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.00401988
test eax, eax
jne 0x40f1ae
mov eax, dword [edi]
push dword [eax*4 + 0x454cfc]
lea ecx, [esp + 0x58]
call fcn.0040166e
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x94], eax
mov dword [esp + 0x50], 0x54010f00
jne 0x40f1d1
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.0041d4a6
mov edi, eax
pop ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0x148], 0xb
cmp edi, esi
je 0x40f219
mov ecx, edi
call fcn.0041ee93
mov byte [esp + 0x148], 0xc
mov dword [edi], vtable.CButton.0
mov byte [esp + 0x148], 0xb
jmp 0x40f21b
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.004026f2
push edi
call fcn.0040fbef
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.0040f8a4
mov byte [esp + 0x148], 0xa
mov ecx, dword [esp + 0x74]
xor esi, esi
cmp ecx, esi
je 0x40f2a4
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 0x40f154
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.0040f8de
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.0040fa00
mov esi, dword [esp + 0x8c]
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x40f380
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.0040fa00
lea ecx, [esp + 0x58]
call fcn.00401b10
mov byte [esp + 0x148], 0xf
mov edi, dword [esp + 0x30]
jmp 0x40f400
lea eax, [esp + 0x58]
push eax
push dword [edi]
mov ecx, esi
call fcn.004227d0
push 0
push 0x26
lea ecx, [esp + 0x60]
call fcn.0040d43a
cmp eax, 0xffffffff
je 0x40f3f8
inc eax
push eax
lea ecx, [esp + 0x5c]
call fcn.00406280
movzx eax, ax
test ax, ax
je 0x40f3f8
mov edi, dword [edi]
push eax
call fcn.00433378
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.0040fa00
mov eax, dword [esp + 0x30]
inc ebx
lea edi, [eax + ebx*4]
cmp dword [edi], 0
jne 0x40f397
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.00423925
push eax
xor edi, edi
push edi
mov ecx, esi
call fcn.0042390b
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.004239c5
push edi
mov ecx, esi
call fcn.0041fb6d
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0042728a
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.0042390b
cmp dword [esp + 0x18], edi
je 0x40f4e5
or eax, 0x80000
jmp 0x40f4ea
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.00423969
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.0040f8a4
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40f53d
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.0040f8a4
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40f579
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.0040f8a4
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x18]
xor ebx, ebx
cmp ecx, ebx
je 0x40f5b7
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.0042384b
mov ecx, eax
call fcn.00423a60
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.00409dbd
mov byte [esp + 0x148], 9
cmp dword [esp + 0xac], ebx
mov dword [esp + 0xa8], vtable.CArray_struct_tagACCEL__struct_tagACCEL_const__.0
je 0x40f61a
push dword [esp + 0xac]
call fcn.0041d4d1
pop ecx
mov byte [esp + 0x148], 6
lea ecx, [esp + 0x54]
call fcn.00409dbd
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.004247ac
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