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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4516a0
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push esi
push edi
mov eax, dword [0x46dd08]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x8c], ebx
call fcn.0042a8a3
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 + 0x45af20]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 0x45af3c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x94], ecx
mov dword [esp + 0x48], edx
jl 0x40a45c
mov dword [esp + 0x94], esi
shl eax, 4
add eax, 0x45af58
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x45afc8]
mov dword [ebx + 0xb4], eax
mov eax, dword [edx*4 + 0x45afe4]
push ebx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x54], eax
call fcn.0042c049
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.00430369
test eax, eax
jne 0x40a4f3
jmp fcn.00408604
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 0x40a60c
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.00424eda
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 2
cmp eax, esi
je 0x40a56c
push eax
call fcn.0040b4af
mov dword [esp + 0x1c], eax
jmp 0x40a572
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.0042be52
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 0x40a611
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 0x40a795
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.0042c2c6
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 0x40a6d5
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x9c]
add eax, ecx
push eax
jmp 0x40a6dc
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.00424eda
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 5
cmp eax, esi
je 0x40a722
push eax
call fcn.0040b4af
mov dword [esp + 0x2c], eax
jmp 0x40a728
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.0040b490
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 0x40a93a
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.004044e5
push eax
lea ecx, [esp + 0x7c]
call fcn.0042c2c6
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 0x40a864
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xc8]
add ecx, eax
jmp 0x40a86b
mov ecx, dword [esp + 0xac]
cmp dword [esp + 0x34], esi
push ecx
je 0x40a885
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xac]
add eax, edx
push eax
jmp 0x40a88c
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.00424eda
pop ecx
mov dword [esp + 0x5c], eax
mov byte [esp + 0x148], 8
cmp eax, esi
je 0x40a8ce
push eax
call fcn.0040b4af
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.004044e5
push esi
call fcn.0040b490
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 0x40a95b
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.0041596f
mov byte [esp + 0x148], 9
mov eax, dword [esp + 0x4c]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x40ab59
lea eax, [ebx + 0xd0]
mov dword [esp + 0x5c], eax
jmp 0x40a9f3
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.0040194e
test eax, eax
jne 0x40aa44
mov eax, dword [edi]
push dword [eax*4 + 0x45aff4]
lea ecx, [esp + 0x58]
call fcn.00401607
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x94], eax
mov dword [esp + 0x50], 0x54010f00
jne 0x40aa67
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.00424eda
mov edi, eax
pop ecx
mov dword [esp + 0x24], edi
mov byte [esp + 0x148], 0xb
cmp edi, esi
je 0x40aaaf
mov ecx, edi
call fcn.00426261
mov byte [esp + 0x148], 0xc
mov dword [edi], vtable.CButton.0
mov byte [esp + 0x148], 0xb
jmp 0x40aab1
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.004044e5
push edi
call fcn.0040b490
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.0040b12f
mov byte [esp + 0x148], 0xa
mov ecx, dword [esp + 0x74]
xor esi, esi
cmp ecx, esi
je 0x40ab3a
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 0x40a9ea
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.0040b1aa
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.0040b2cc
mov esi, dword [esp + 0x8c]
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x40ac16
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.0040b2cc
lea ecx, [esp + 0x58]
call fcn.0041596f
mov byte [esp + 0x148], 0xf
mov edi, dword [esp + 0x30]
jmp 0x40ac96
lea eax, [esp + 0x58]
push eax
push dword [edi]
mov ecx, esi
call fcn.00429aab
push 0
push 0x26
lea ecx, [esp + 0x60]
call fcn.0040b43d
cmp eax, 0xffffffff
je 0x40ac8e
inc eax
push eax
lea ecx, [esp + 0x5c]
call fcn.0040b419
movzx eax, ax
test ax, ax
je 0x40ac8e
mov edi, dword [edi]
push eax
call fcn.00438f96
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.0040b2cc
mov eax, dword [esp + 0x30]
inc ebx
lea edi, [eax + ebx*4]
cmp dword [edi], 0
jne 0x40ac2d
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.0042afab
push eax
xor edi, edi
push edi
mov ecx, esi
call fcn.0042af91
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push esi
lea eax, [esp + 0x3c]
call fcn.00404492
push edi
mov ecx, esi
call fcn.00426f3b
push edi
mov ecx, esi
call fcn.00409f5f
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.0042af91
cmp dword [esp + 0x18], edi
je 0x40ad5a
or eax, 0x80000
jmp 0x40ad5f
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.0042afef
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.0040b12f
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40adb2
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.0040b12f
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40adee
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.0040b12f
mov byte [esp + 0x148], 0xf
mov ecx, dword [esp + 0x18]
xor ebx, ebx
cmp ecx, ebx
je 0x40ae2c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x1c], ebx
call fcn.0042aed1
mov ecx, eax
call fcn.0042b0e6
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.004102dc
mov byte [esp + 0x148], 9
cmp dword [esp + 0xac], ebx
mov dword [esp + 0xa8], vtable.CArray_struct_tagACCEL__struct_tagACCEL_const__.0
je 0x40ae8f
push dword [esp + 0xac]
call fcn.00424f05
pop ecx
mov byte [esp + 0x148], 6
lea ecx, [esp + 0x54]
call fcn.004102dc
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.0042c09d
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