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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x4c448c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, edx
mov dword [esi], vtable.CXDialogTemplate.0
mov edx, dword [ebx + 0x858]
mov dword [esi + 0x54], edx
mov dword [ebp - 0x468], eax
mov eax, dword [ebx + 0x854]
mov dword [esi + 0x58], eax
xor eax, eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [ebp - 0x46c], ecx
mov ecx, dword [ebx + 4]
mov dword [esi + 0x68], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 0x6c], edx
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x70], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x74], edx
or edi, 0xffffffff
mov dword [esi + 0x88], edi
mov ecx, dword [ebx + 0x850]
mov dword [esi + 0x8c], ecx
mov dword [esi + 0x90], 0x3e9
mov ecx, 1
mov dword [esi + 0x94], ecx
mov edx, dword [ebx]
mov dword [esi + 0x98], edx
mov dword [esi + 0x9c], 0x4000010
mov edx, dword [ebx + 0x14]
and edx, ecx
mov dword [esi + 0xa4], edx
mov edx, dword [ebx + 0x14]
and edx, 2
mov dword [esi + 0xa8], edx
mov edx, dword [ebx + 0x14]
and edx, 4
mov dword [esi + 0xac], edx
mov dword [esi + 0xb0], eax
mov edx, dword [ebx + 0x84c]
mov dword [esi + 0xb4], edx
mov edx, dword [ebp + 8]
mov dword [esi + 0xb8], edx
mov edx, dword [ebx + 0x18]
mov dword [esi + 0xbc], edx
mov edx, dword [ebx + 0x1c]
mov dword [esi + 0xc0], edx
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], eax
mov dword [esi + 0x4ec], eax
mov dword [esi + 0x4f0], eax
mov edx, dword [ebx + 0x85c]
mov dword [esi + 0x4f4], edx
mov edx, dword [ebx + 0x860]
mov dword [esi + 0x4f8], edx
mov dword [esi + 0x4fc], eax
cmp dword [esi + 0xa8], eax
je 0x4667c4
mov dword [esi + 0xa4], ecx
cmp edx, edi
jne 0x4667c4
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x4f8], eax
mov eax, dword [esi + 0x4f8]
cmp eax, edi
je 0x4667db
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x4fc], eax
mov edi, dword [sym.imp.USER32.dll_GetDialogBaseUnits]
call edi
movzx eax, ax
mov dword [ebp - 0x478], eax
call edi
mov ecx, dword [ebp - 0x478]
push 4
mov edi, eax
push ecx
shr edi, 0x10
push 0x26
mov dword [ebp - 0x484], edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 8
push edi
push 0xc
mov dword [esi + 0x78], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [ebp - 0x478]
push 4
push edx
push 0xd
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp dword [esi + 0xa8], 0
mov dword [esi + 0x7c], eax
je 0x466860
mov eax, dword [ebp - 0x478]
push 4
push eax
push 6
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [esi + 0x78], eax
push 8
push edi
push 1
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [esi + 0x80], eax
push 8
push edi
push 0xa
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esi + 0x78]
push 0x208
lea edi, [esi + 0x2e4]
push 0
push edi
mov dword [esi + 0x84], eax
mov dword [ebp - 0x474], ecx
mov dword [esi + 0x64], 1
call fcn.00479dd0
lea eax, [ebx + 0x644]
add esp, 0xc
sub edi, eax
nop
movzx ecx, word [eax]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x4668a0
push 0xc8
lea edx, [esi + 0x512]
push 0
push edx
call fcn.00479dd0
add esp, 0xc
push 0x20000
call fcn.0047125f
add esp, 4
mov dword [esi + 0xd4], eax
test eax, eax
je 0x4668e1
xor ecx, ecx
mov word [eax], cx
mov edx, dword [esi + 0xd4]
push 0x20000
push 0
push edx
call fcn.00479dd0
add esp, 0xc
push 0x20000
call fcn.0047125f
add esp, 4
mov dword [esi + 0xd8], eax
test eax, eax
je 0x466913
xor ecx, ecx
mov word [eax], cx
mov edx, dword [esi + 0xd8]
push 0x20000
push 0
push edx
call fcn.00479dd0
mov edi, dword [esi + 0xbc]
add esp, 0xc
mov dword [ebp - 0x464], edi
test edi, edi
jne 0x466948
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x4669a2
mov ecx, eax
shr ecx, 0x10
push 0xffff
test ecx, ecx
jne 0x466983
mov edx, dword [esi + 0xd4]
movzx eax, ax
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x466993
mov ecx, dword [esi + 0xd4]
xor edx, edx
mov word [ecx], dx
jmp 0x466993
push eax
mov eax, dword [esi + 0xd4]
push eax
call fcn.00475727
add esp, 0xc
mov ecx, dword [esi + 0xd4]
xor edx, edx
mov word [ecx + 0x1fffe], dx
mov eax, dword [ebp - 0x46c]
test eax, eax
je 0x4669fc
mov ecx, eax
shr ecx, 0x10
push 0xffff
test ecx, ecx
jne 0x4669dd
mov edx, dword [esi + 0xd8]
movzx eax, ax
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4669ed
mov ecx, dword [esi + 0xd8]
xor edx, edx
mov word [ecx], dx
jmp 0x4669ed
push eax
mov eax, dword [esi + 0xd8]
push eax
call fcn.00475727
add esp, 0xc
mov ecx, dword [esi + 0xd8]
xor edx, edx
mov word [ecx + 0x1fffe], dx
push 0x208
lea edi, [esi + 0xdc]
push 0
push edi
call fcn.00479dd0
mov eax, dword [ebx + 0x22c]
add esp, 0xc
test eax, eax
je 0x466a39
push 0x103
push edi
push eax
mov eax, dword [ebp - 0x464]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x466a39
xor ecx, ecx
mov word [edi], cx
cmp word [edi], 0
jne 0x466a5e
cmp word [ebx + 0x230], 0
lea eax, [ebx + 0x230]
je 0x466a5e
push 0x103
push eax
push edi
call fcn.00475727
add esp, 0xc
xor edx, edx
push 0xc8
push edx
lea edi, [esi + 0xf88]
push edi
mov word [esi + 0x2e2], dx
call fcn.00479dd0
mov eax, dword [ebx + 0x438]
add esp, 0xc
test eax, eax
je 0x466aa0
push 0x63
push edi
push eax
mov eax, dword [ebp - 0x464]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x466aa0
xor ecx, ecx
mov word [edi], cx
cmp word [edi], 0
jne 0x466ac2
cmp word [ebx + 0x43c], 0
lea eax, [ebx + 0x43c]
je 0x466ac2
push 0x63
push eax
push edi
call fcn.00475727
add esp, 0xc
xor edx, edx
mov edi, esi
mov word [esi + 0x104e], dx
call fcn.00467da0
cmp dword [ebx + 0x864], 0
je 0x466ae8
lea edi, [ebx + 0x868]
call fcn.00467a20
jmp 0x466af4
mov eax, dword [ebp - 0x464]
push eax
call fcn.00467e20
push 0
push 0
push 0
push 0x4b8b5c
call dword [sym.imp.GDI32.dll_CreateDCW]
push 0
lea ecx, [ebp - 0x45c]
push ecx
push 0x1f4
mov edi, eax
push 0x29
mov dword [ebp - 0x470], edi
mov dword [ebp - 0x45c], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea edx, [ebp - 0x2c4]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
push edi
mov dword [esi + 0x4f0], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x488], eax
lea eax, [esi + 0x5dc]
mov dword [ebp - 0x468], eax
lea edi, [esi + 0x628]
mov dword [ebp - 0x46c], 0x13
lea ebx, [ebx]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466b75
sub eax, edx
mov edx, dword [ebp - 0x470]
lea ecx, [ebp - 0x480]
push ecx
sar eax, 1
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x480]
add eax, 0x14
cmp eax, dword [ebp - 0x474]
jg 0x466bb1
mov eax, dword [ebp - 0x474]
cmp dword [esi + 0x68], 0
je 0x466bba
add eax, dword [esi + 0x7c]
mov ecx, dword [ebp - 0x468]
mov dword [ecx], eax
add ecx, 4
add edi, 0xc8
dec dword [ebp - 0x46c]
mov dword [ebp - 0x468], ecx
jne 0x466b70
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
cdq
sub eax, edx
sar eax, 1
add eax, 0x50
cmp dword [esi + 0xa8], 0
mov dword [ebp - 0x460], eax
je 0x466c0c
push 0
call edi
cdq
sub eax, edx
sar eax, 1
sub eax, 0xa
mov dword [ebp - 0x460], eax
cmp dword [esi + 0xac], 0
je 0x466c2f
push 0
call edi
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x460], eax
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0xfffffff0
sub ecx, eax
add dword [ebp - 0x460], ecx
mov eax, dword [ebp - 0x460]
push eax
push eax
push 0
push 0
lea edi, [esi + 0xc4]
push edi
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esi + 0xd4]
mov eax, dword [ebp - 0x470]
push 0xc50
push edi
push 0xffffffffffffffff
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov edx, dword [ebp - 0x470]
lea ecx, [ebp - 0x490]
push ecx
push 2
push 0x4b8a84
push edx
mov dword [ebp - 0x464], eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esi + 0xa8]
mov ecx, eax
neg ecx
sbb ecx, ecx
add dword [esi + 0xcc], 0x1c
and ecx, 0x10
add ecx, 0x10
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x1d
add dword [esi + 0xd0], eax
mov dword [esi + 0xc8], ecx
mov dword [edi], 0x10
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, dword [edi]
add edx, 0x10
push edx
add eax, 0x10
push eax
push 0
push 0
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [esi + 0xa8], 0
je 0x466d09
add dword [ebp - 0x21c], 0x10
mov edx, dword [ebp - 0x218]
sub edx, dword [ebp - 0x220]
cmp edx, 0x46
jge 0x466d24
mov dword [ebp - 0x218], 0x46
xor eax, eax
mov dword [esi + 0x50a], eax
mov dword [esi + 0x504], eax
mov dword [esi + 0x500], 0x90c80880
xor edx, edx
mov word [esi + 0x508], dx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
push eax
mov dword [esi + 0x40], eax
push eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
push eax
mov dword [esi + 0x4c], eax
push eax
mov dword [esi + 0x50], eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esi + 0xc0]
test eax, eax
jne 0x466da3
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp dword [ebx + 0x20], 0
je 0x466db1
movzx ecx, word [ebx + 0x20]
push ecx
push eax
jmp 0x466dc5
add ebx, 0x24
cmp word [ebx], 0
je 0x466dbe
push ebx
push eax
jmp 0x466dc5
push 0x7f01
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0x4ec], eax
test eax, eax
je 0x466f99
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xc
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [esi + 0xa8]
mov ecx, edx
neg ecx
sbb ecx, ecx
and ecx, 0x10
mov dword [ebp - 0x468], eax
add ecx, 8
lea eax, [ecx + ebx]
add dword [edi], eax
lea eax, [ecx + ebx]
add dword [esi + 0xcc], eax
mov eax, dword [esi + 0xcc]
add eax, 8
mov dword [ebp - 0x21c], eax
test edx, edx
je 0x466e2b
add dword [ebp - 0x21c], 0x10
mov edx, dword [ebp - 0x468]
lea eax, [ecx + edx + 2]
push eax
lea edx, [ecx + ebx + 2]
push edx
push ecx
push ecx
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x20
call fcn.00473e79
add esp, 4
test eax, eax
je 0x466e6e
mov dword [eax], vtable.CXDialogItem.0
mov dword [eax + 0x18], 0x82
mov dword [eax + 0x1c], 0
jmp 0x466e70
xor eax, eax
movzx ecx, word [esi + 0x508]
mov dword [esi + ecx*4 + 4], eax
movzx edx, word [esi + 0x508]
mov ebx, dword [esi + edx*4 + 4]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
shr eax, 0x10
mov dword [ebp - 0x468], eax
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
movzx eax, ax
movsx ecx, ax
mov dword [ebx + 0x18], 0x82
mov eax, dword [ebp - 0x234]
add eax, eax
add eax, eax
cdq
idiv ecx
mov dword [ebp - 0x46c], ecx
movsx ecx, word [ebp - 0x468]
mov word [ebx + 0xc], ax
mov eax, dword [ebp - 0x230]
add eax, eax
add eax, eax
add eax, eax
cdq
idiv ecx
mov word [ebx + 0xe], ax
mov eax, dword [ebp - 0x22c]
sub eax, dword [ebp - 0x234]
add eax, eax
add eax, eax
cdq
idiv dword [ebp - 0x46c]
mov word [ebx + 0x10], ax
mov eax, dword [ebp - 0x228]
sub eax, dword [ebp - 0x230]
mov dword [ebx + 8], 0
add eax, eax
add eax, eax
add eax, eax
cdq
idiv ecx
xor ecx, ecx
mov edx, 2
mov dword [ebx + 4], 0x50000000
mov word [ebx + 0x12], ax
mov eax, 0x3e8
mov word [ebx + 0x14], ax
mov eax, 1
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047125f
add esp, 4
mov dword [ebx + 0x1c], eax
mov ecx, 0x4aab50
lea ebx, [ebx]
movzx edx, word [ecx]
mov word [eax], dx
add ecx, 2
add eax, 2
test dx, dx
jne 0x466f50
inc word [esi + 0x508]
cmp dword [esi + 0xa8], 0
je 0x466f99
mov eax, dword [ebp - 0x464]
cmp eax, dword [ebp - 0x48c]
jle 0x466f99
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [ebp - 0x230]
mov dword [esi + 0xc8], ecx
add ecx, eax
mov dword [esi + 0xd0], ecx
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0xd4]
mov dword [ebp - 0x460], eax
mov dword [esi + 0xa0], eax
inc eax
push 0x20
mov dword [esi + 0x90], eax
mov dword [ebp - 0x464], ecx
call fcn.00473e79
add esp, 4
test eax, eax
je 0x466fe2
mov dword [eax], vtable.CXDialogItem.0
mov dword [eax + 0x18], 0x82
mov dword [eax + 0x1c], 0
jmp 0x466fe4
xor eax, eax
movzx edx, word [esi + 0x508]
mov dword [esi + edx*4 + 4], eax
movzx eax, word [esi + 0x508]
mov ebx, dword [esi + eax*4 + 4]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
shr eax, 0x10
mov dword [ebp - 0x468], eax
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
movzx eax, ax
movsx ecx, ax
mov dword [ebx + 0x18], 0x82
mov eax, dword [edi]
add eax, eax
add eax, eax
cdq
idiv ecx
mov dword [ebp - 0x46c], ecx
movsx ecx, word [ebp - 0x468]
mov word [ebx + 0xc], ax
mov eax, dword [edi + 4]
add eax, eax
add eax, eax
add eax, eax
cdq
idiv ecx
mov word [ebx + 0xe], ax
mov eax, dword [edi + 8]
sub eax, dword [edi]
add eax, eax
add eax, eax
cdq
idiv dword [ebp - 0x46c]
mov word [ebx + 0x10], ax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov dword [ebx + 8], 0
add eax, eax
add eax, eax
add eax, eax
cdq
idiv ecx
cmp dword [ebp - 0x464], 0
mov cx, word [ebp - 0x460]
mov word [ebx + 0x14], cx
mov dword [ebx + 4], 0x50000000
mov word [ebx + 0x12], ax
je 0x4670b1
mov eax, dword [ebp - 0x464]
lea edx, [eax + 2]
jmp 0x4670a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4670a0
sub eax, edx
sar eax, 1
jmp 0x4670b3
xor eax, eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047125f
mov ecx, dword [ebp - 0x464]
mov dword [ebx + 0x1c], eax
xor ebx, ebx
add esp, 4
cmp ecx, ebx
jne 0x4670e1
mov ecx, 0x4aab50
mov edx, eax
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x4670e3
mov edi, 1
add word [esi + 0x508], di
lea eax, [esi + 0xdc]
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x464], ebx
cmp word [eax], bx
jne 0x467128
mov eax, dword [esi + 0x608]
mov dword [ebp - 0x464], eax
jmp 0x4671c2
lea edx, [ebp - 0x214]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x467130
lea ecx, [ebp - 0x214]
push 0x4b8a8c
push ecx
call fcn.00475ce3
add esp, 8
cmp eax, ebx
je 0x4671c0
cmp ebx, 4
jge 0x4671c0
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x467161
sub ecx, edi
lea edx, [ebp - 0x480]
push edx
sar ecx, 1
push ecx
push eax
mov eax, dword [ebp - 0x470]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x480]
add eax, 0x14
cmp eax, dword [ebp - 0x474]
jg 0x46719d
mov eax, dword [ebp - 0x474]
cmp dword [esi + 0x68], 0
je 0x4671a6
add eax, dword [esi + 0x7c]
add dword [ebp - 0x460], eax
push 0x4b8a8c
push 0
call fcn.00475ce3
add esp, 8
inc ebx
test eax, eax
jne 0x467157
mov edi, ebx
cmp dword [esi + 0x54], 0
je 0x4671d5
mov ecx, dword [esi + 0x60c]
inc edi
add dword [ebp - 0x464], ecx
mov eax, dword [esi + 0xd0]
mov ecx, dword [ebp - 0x228]
or dword [esi + 0x5c], 4
cmp eax, ecx
jg 0x4671eb
mov eax, ecx
add eax, 5
cmp dword [esi + 0x4ec], 0
jne 0x467200
cmp dword [esi + 0x4fc], 0
je 0x467203
add eax, 9
mov ecx, dword [ebp - 0x464]
lea edx, [edi + edi*2]
lea edx, [ecx + edx*2]
mov ecx, dword [ebp - 0x460]
lea ebx, [edx + ecx - 6]
mov edx, dword [esi + 0x80]
add edx, eax
push edx
push ebx
push eax
push 0
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [esi + 0x64], edi
jle 0x46723f
mov dword [esi + 0x64], 1
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x23c]
sub edx, dword [ebp - 0x244]
mov eax, dword [esi + 0x5f0]
add eax, dword [esi + 0x84]
add ecx, 0xc
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp - 0x21c]
lea edi, [edx + 0x20]
mov dword [ebp - 0x47c], eax
cmp ecx, edi
jg 0x467281
mov ecx, edi
mov dword [ebp - 0x21c], ecx
mov edi, ecx
sub edi, dword [ebp - 0x224]
cmp edi, eax
jge 0x467296
lea ecx, [eax + 0x10]
mov dword [ebp - 0x21c], ecx
mov eax, ecx
sub eax, dword [ebp - 0x224]
sub eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x240]
sar edi, 1
cmp dword [esi + 0xa4], 0
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x468], eax
je 0x4672cd
sub ecx, ebx
lea edi, [ecx - 0x10]
mov dword [ebp - 0x460], edi
cmp word [esi + 0xdc], 0
lea ebx, [esi + 0xdc]
jne 0x467301
mov ecx, dword [ebp - 0x460]
push eax
push 1
mov ebx, 0xb
mov edi, esi
call fcn.004677a0
add dword [ebp - 0x460], eax
or dword [esi + 0x5c], 0x10
jmp 0x46757f
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.00479dd0
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x214]
push ebx
push ecx
call fcn.00475727
add esp, 0xc
lea edx, [ebp - 0x214]
push 0x4b8a8c
push edx
call fcn.00475ce3
add esp, 8
mov dword [ebp - 0x46c], eax
test eax, eax
je 0x46757f
mov dword [ebp - 0x464], 0x17
mov eax, dword [ebp - 0x464]
add eax, 0xffffffe9
cmp eax, 4
jge 0x46757f
mov ebx, dword [ebp - 0x46c]
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x467380
sub eax, edx
mov edx, dword [ebp - 0x470]
lea ecx, [ebp - 0x25c]
push ecx
sar eax, 1
push eax
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x474]
add eax, 0x14
cmp eax, ecx
jg 0x4673ba
mov eax, ecx
cmp dword [esi + 0x68], 0
je 0x4673c3
add eax, dword [esi + 0x7c]
mov ecx, dword [ebp - 0x468]
mov edx, dword [esi + 0x80]
add eax, edi
add edx, ecx
push edx
push eax
push ecx
mov dword [ebp - 0x460], eax
push edi
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x20
call fcn.00473e79
add esp, 4
test eax, eax
je 0x46740e
mov dword [eax], vtable.CXDialogItem.0
mov dword [eax + 0x18], 0x80
mov dword [eax + 0x1c], 0
jmp 0x467410
xor eax, eax
movzx ecx, word [esi + 0x508]
mov dword [esi + ecx*4 + 4], eax
movzx edx, word [esi + 0x508]
mov edi, dword [esi + edx*4 + 4]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov ebx, eax
shr ebx, 0x10
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
movzx eax, ax
movsx ecx, ax
mov dword [edi + 0x18], 0x80
mov eax, dword [ebp - 0x254]
add eax, eax
add eax, eax
cdq
idiv ecx
movsx ebx, bx
mov word [edi + 0xc], ax
mov eax, dword [ebp - 0x250]
add eax, eax
add eax, eax
add eax, eax
cdq
idiv ebx
mov word [edi + 0xe], ax
mov eax, dword [ebp - 0x24c]
sub eax, dword [ebp - 0x254]
add eax, eax
add eax, eax
cdq
idiv ecx
mov word [edi + 0x10], ax
mov eax, dword [ebp - 0x248]
sub eax, dword [ebp - 0x250]
mov dword [edi + 8], 0
add eax, eax
add eax, eax
add eax, eax
cdq
idiv ebx
mov word [edi + 0x12], ax
mov ax, word [ebp - 0x464]
mov word [edi + 0x14], ax
inc dword [esi + 0x60]
mov dword [edi + 4], 0x50010000
mov ecx, dword [esi + 0x60]
cmp ecx, dword [esi + 0x64]
jne 0x4674d4
mov edx, dword [ebp - 0x464]
mov dword [edi + 4], 0x50010001
mov dword [esi + 0x94], edx
jmp 0x4674db
mov dword [edi + 4], 0x50010000
mov ebx, dword [ebp - 0x46c]
test ebx, ebx
je 0x467501
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4674f0
sub eax, edx
sar eax, 1
jmp 0x467503
xor eax, eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047125f
add esp, 4
mov dword [edi + 0x1c], eax
mov ecx, ebx
test ebx, ebx
jne 0x46752b
mov ecx, 0x4aab50
mov edx, eax
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x467530
mov edi, dword [ebp - 0x460]
push 0x4b8a8c
mov ebx, 1
add word [esi + 0x508], bx
add edi, 6
push 0
mov dword [ebp - 0x460], edi
call fcn.00475ce3
add dword [ebp - 0x464], ebx
add esp, 8
mov dword [ebp - 0x46c], eax
test eax, eax
jne 0x467360
cmp dword [esi + 0x54], 0
je 0x4675a9
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x460]
push eax
push 0x12d
mov ebx, 0xc
mov edi, esi
call fcn.004677a0
add dword [ebp - 0x460], eax
mov ecx, dword [esi + 0x84]
mov edx, dword [ebp - 0x47c]
push ecx
push edx
push 0
push 0
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esi + 0xa10]
push ecx
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x460]
push edx
lea edx, [ebp - 0x264]
lea eax, [ebp - 0x254]
mov ecx, esi
call fcn.00467860
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x218]
cmp eax, ecx
jl 0x467617
lea ecx, [eax + 0x10]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x21c]
add edx, 0x10
cmp eax, edx
jge 0x467632
mov eax, edx
mov dword [ebp - 0x21c], eax
sub eax, dword [ebp - 0x224]
xor edx, edx
add eax, eax
add eax, eax
mov word [esi + 0x50a], dx
mov word [esi + 0x50c], dx
cdq
idiv dword [ebp - 0x478]
mov edi, dword [ebp - 0x470]
mov word [esi + 0x50e], ax
mov eax, ecx
sub eax, dword [ebp - 0x220]
add eax, eax
add eax, eax
add eax, eax
cdq
idiv dword [ebp - 0x484]
mov word [esi + 0x510], ax
mov eax, dword [ebp - 0x488]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474985
mov esp, ebp
pop ebp
ret 0xc