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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x523f10]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov ebx, edx
mov dword [ebx], vtable.CXDialogTemplate.0
mov esi, dword [ebp + 0x10]
mov edx, dword [esi + 0x858]
mov dword [ebx + 0x54], edx
mov dword [ebp - 0x410], eax
mov eax, dword [esi + 0x854]
mov dword [ebx + 0x58], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], eax
mov dword [ebp - 0x41c], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 0x68], ecx
mov edx, dword [esi + 8]
mov dword [ebx + 0x6c], edx
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x70], ecx
mov edx, dword [esi + 0x10]
mov dword [ebx + 0x74], edx
or edi, 0xffffffff
mov dword [ebx + 0x88], edi
mov ecx, dword [esi + 0x850]
mov dword [ebx + 0x8c], ecx
mov dword [ebx + 0x90], 0x3e9
mov ecx, 1
mov dword [ebx + 0x94], ecx
mov edx, dword [esi]
mov dword [ebx + 0x98], edx
mov dword [ebx + 0x9c], 0x1000004
mov edx, dword [esi + 0x14]
and edx, ecx
mov dword [ebx + 0xa4], edx
mov edx, dword [esi + 0x14]
and edx, 2
mov dword [ebx + 0xa8], edx
mov edx, dword [esi + 0x14]
and edx, 4
mov dword [ebx + 0xac], edx
mov dword [ebx + 0xb0], eax
mov edx, dword [esi + 0x84c]
mov dword [ebx + 0xb4], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 0xb8], edx
mov edx, dword [esi + 0x18]
mov dword [ebx + 0xbc], edx
mov edx, dword [esi + 0x1c]
mov dword [ebx + 0xc0], edx
mov dword [ebx + 0xd4], eax
mov dword [ebx + 0xd8], eax
mov dword [ebx + 0x4ec], eax
mov dword [ebx + 0x4f0], eax
mov edx, dword [esi + 0x85c]
mov dword [ebx + 0x4f4], edx
mov edx, dword [esi + 0x860]
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x414], esi
mov dword [ebx + 0x4f8], edx
mov dword [ebx + 0x4fc], eax
cmp dword [ebx + 0xa8], eax
je 0x4a1c10
mov dword [ebx + 0xa4], ecx
cmp edx, edi
jne 0x4a1c10
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebx + 0x4f8], eax
mov eax, dword [ebx + 0x4f8]
cmp eax, edi
je 0x4a1c27
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebx + 0x4fc], eax
mov edi, dword [sym.imp.USER32.dll_GetDialogBaseUnits]
call edi
movzx eax, ax
mov dword [ebp - 0x438], eax
call edi
mov ecx, dword [ebp - 0x438]
push 4
mov edi, eax
push ecx
shr edi, 0x10
push 0x26
mov dword [ebp - 0x478], edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
push 8
push edi
push 0xc
mov dword [ebx + 0x78], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [ebp - 0x438]
push 4
push edx
push 0xd
mov dword [ebx + 0x80], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp dword [ebx + 0xa8], 0
mov dword [ebx + 0x7c], eax
je 0x4a1cac
mov eax, dword [ebp - 0x438]
push 4
push eax
push 6
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [ebx + 0x78], eax
push 8
push edi
push 1
call dword [sym.imp.KERNEL32.dll_MulDiv]
add dword [ebx + 0x80], eax
push 8
push edi
push 0xa
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebx + 0x78]
push 0x208
lea edi, [ebx + 0x2e4]
push 0
push edi
mov dword [ebx + 0x84], eax
mov dword [ebp - 0x424], ecx
mov dword [ebx + 0x64], 1
call fcn.004ba4b0
lea eax, [esi + 0x644]
add esp, 0xc
sub edi, eax
jmp 0x4a1cf0
movzx ecx, word [eax]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x4a1cf0
push 0xc8
lea edx, [ebx + 0x512]
push 0
push edx
call fcn.004ba4b0
add esp, 0xc
push 0x20000
call fcn.004aad61
add esp, 4
mov dword [ebx + 0xd4], eax
test eax, eax
je 0x4a1d31
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebx + 0xd4]
push 0x20000
push 0
push edx
call fcn.004ba4b0
add esp, 0xc
push 0x20000
call fcn.004aad61
add esp, 4
mov dword [ebx + 0xd8], eax
test eax, eax
je 0x4a1d63
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebx + 0xd8]
push 0x20000
push 0
push edx
call fcn.004ba4b0
mov edi, dword [ebx + 0xbc]
add esp, 0xc
mov dword [ebp - 0x418], edi
test edi, edi
jne 0x4a1d98
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x4a1df2
mov ecx, eax
shr ecx, 0x10
push 0xffff
test ecx, ecx
jne 0x4a1dd3
mov edx, dword [ebx + 0xd4]
movzx eax, ax
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4a1de3
mov ecx, dword [ebx + 0xd4]
xor edx, edx
mov word [ecx], dx
jmp 0x4a1de3
push eax
mov eax, dword [ebx + 0xd4]
push eax
call fcn.004bdc46
add esp, 0xc
mov ecx, dword [ebx + 0xd4]
xor edx, edx
mov word [ecx + 0x1fffe], dx
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x4a1e4c
mov ecx, eax
shr ecx, 0x10
push 0xffff
test ecx, ecx
jne 0x4a1e2d
mov edx, dword [ebx + 0xd8]
movzx eax, ax
push edx
push eax
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4a1e3d
mov ecx, dword [ebx + 0xd8]
xor edx, edx
mov word [ecx], dx
jmp 0x4a1e3d
push eax
mov eax, dword [ebx + 0xd8]
push eax
call fcn.004bdc46
add esp, 0xc
mov ecx, dword [ebx + 0xd8]
xor edx, edx
mov word [ecx + 0x1fffe], dx
push 0x208
lea edi, [ebx + 0xdc]
push 0
push edi
call fcn.004ba4b0
mov eax, dword [esi + 0x22c]
add esp, 0xc
test eax, eax
je 0x4a1e89
push 0x103
push edi
push eax
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4a1e89
xor ecx, ecx
mov word [edi], cx
cmp word [edi], 0
jne 0x4a1eae
cmp word [esi + 0x230], 0
lea eax, [esi + 0x230]
je 0x4a1eae
push 0x103
push eax
push edi
call fcn.004bdc46
add esp, 0xc
xor edx, edx
push 0xc8
push edx
lea edi, [ebx + 0xf88]
push edi
mov word [ebx + 0x2e2], dx
call fcn.004ba4b0
mov eax, dword [esi + 0x438]
add esp, 0xc
test eax, eax
je 0x4a1ef0
push 0x63
push edi
push eax
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4a1ef0
xor ecx, ecx
mov word [edi], cx
cmp word [edi], 0
jne 0x4a1f12
cmp word [esi + 0x43c], 0
lea eax, [esi + 0x43c]
je 0x4a1f12
push 0x63
push eax
push edi
call fcn.004bdc46
add esp, 0xc
xor edx, edx
mov edi, ebx
mov word [ebx + 0x104e], dx
call fcn.004a30c0
cmp dword [esi + 0x864], 0
je 0x4a1f3c
mov edi, esi
add edi, 0x868
mov esi, ebx
call fcn.004a2d40
jmp 0x4a1f48
mov eax, dword [ebp - 0x418]
push eax
call fcn.004a3140
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
push 0
lea ecx, [ebp - 0x40c]
push ecx
push 0x1f4
mov esi, eax
push 0x29
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x40c], 0x1f4
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea edx, [ebp - 0x274]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
push esi
mov dword [ebx + 0x4f0], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x474], eax
lea edi, [ebx + 0x5dc]
lea esi, [ebx + 0x628]
mov dword [ebp - 0x410], 0x13
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a1fc0
sub eax, edx
mov edx, dword [ebp - 0x418]
lea ecx, [ebp - 0x458]
push ecx
sar eax, 1
push eax
push esi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x458]
add eax, 0x14
cmp eax, dword [ebp - 0x424]
jg 0x4a1ffc
mov eax, dword [ebp - 0x424]
cmp dword [ebx + 0x68], 0
je 0x4a2005
add eax, dword [ebx + 0x7c]
mov dword [edi], eax
add edi, 4
add esi, 0xc8
sub dword [ebp - 0x410], 1
jne 0x4a1fb8
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
cdq
sub eax, edx
sar eax, 1
add eax, 0x50
cmp dword [ebx + 0xa8], 0
je 0x4a2040
push 0
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0xa
cmp dword [ebx + 0xac], 0
je 0x4a205d
push 0
call esi
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edi, dword [sym.imp.USER32.dll_SetRect]
push eax
push eax
push 0
push 0
lea esi, [ebx + 0xc4]
push esi
call edi
mov eax, dword [ebx + 0xd4]
mov ecx, dword [ebp - 0x418]
push 0xc50
push esi
push 0xffffffffffffffff
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
lea edx, [ebp - 0x480]
push edx
push 2
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x418]
push 0x510748
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebx + 0xa8]
mov ecx, eax
neg ecx
sbb ecx, ecx
add dword [ebx + 0xcc], 0x1c
and ecx, 0x10
add ecx, 0x10
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x1d
add dword [ebx + 0xd0], eax
mov dword [ebx + 0xc8], ecx
mov dword [esi], 0x10
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
mov eax, dword [esi + 8]
sub eax, dword [esi]
add edx, 0x10
push edx
add eax, 0x10
push eax
push 0
push 0
lea ecx, [ebp - 0x434]
push ecx
call edi
cmp dword [ebx + 0xa8], 0
je 0x4a211a
add dword [ebp - 0x42c], 0x10
mov edx, dword [ebp - 0x428]
sub edx, dword [ebp - 0x430]
cmp edx, 0x46
jge 0x4a2135
mov dword [ebp - 0x428], 0x46
xor eax, eax
mov word [ebx + 0x50a], ax
mov dword [ebx + 0x504], eax
mov dword [ebx + 0x500], 0x90c80880
xor ecx, ecx
mov word [ebx + 0x50c], cx
xor edx, edx
mov word [ebx + 0x508], dx
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
push eax
mov dword [ebx + 0x40], eax
push eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
push eax
mov dword [ebx + 0x4c], eax
push eax
mov dword [ebx + 0x50], eax
lea eax, [ebp - 0x450]
push eax
call edi
mov eax, dword [ebx + 0xc0]
test eax, eax
jne 0x4a21ba
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp - 0x414]
cmp dword [ecx + 0x20], 0
je 0x4a21cc
movzx ecx, word [ecx + 0x20]
jmp 0x4a21d5
add ecx, 0x24
cmp word [ecx], 0
je 0x4a21e3
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebx + 0x4ec], eax
cmp dword [ebx + 0x4ec], 0
je 0x4a23aa
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xc
mov edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [ebx + 0xa8]
mov ecx, edx
neg ecx
sbb ecx, ecx
and ecx, 0x10
mov dword [ebp - 0x410], eax
add ecx, 8
lea eax, [ecx + edi]
add dword [esi], eax
lea eax, [ecx + edi]
add dword [ebx + 0xcc], eax
mov eax, dword [ebx + 0xcc]
add eax, 8
mov dword [ebp - 0x42c], eax
test edx, edx
je 0x4a2242
add dword [ebp - 0x42c], 0x10
mov edx, dword [ebp - 0x410]
lea eax, [ecx + edx + 2]
push eax
lea edx, [ecx + edi + 2]
push edx
push ecx
push ecx
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x20
call fcn.004aad32
add esp, 4
test eax, eax
je 0x4a2285
mov dword [eax], vtable.CXDialogItem.0
mov dword [eax + 0x18], 0x82
mov dword [eax + 0x1c], 0
jmp 0x4a2287
xor eax, eax
movzx ecx, word [ebx + 0x508]
mov dword [ebx + ecx*4 + 4], eax
movzx edx, word [ebx + 0x508]
mov edi, dword [ebx + edx*4 + 4]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
shr eax, 0x10
mov dword [ebp - 0x410], eax
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
movzx eax, ax
movsx ecx, ax
mov dword [edi + 0x18], 0x82
mov eax, dword [ebp - 0x450]
add eax, eax
add eax, eax
cdq
idiv ecx
mov dword [ebp - 0x414], ecx
movsx ecx, word [ebp - 0x410]
mov word [edi + 0xc], ax
mov eax, dword [ebp - 0x44c]
add eax, eax
add eax, eax
add eax, eax
cdq
idiv ecx
mov word [edi + 0xe], ax
mov eax, dword [ebp - 0x448]
sub eax, dword [ebp - 0x450]
add eax, eax
add eax, eax
cdq
idiv dword [ebp - 0x414]
mov word [edi + 0x10], ax
mov eax, dword [ebp - 0x444]
sub eax, dword [ebp - 0x44c]
mov dword [edi + 8], 0
add eax, eax
add eax, eax
add eax, eax
cdq
idiv ecx
xor ecx, ecx
mov edx, 2
mov dword [edi + 4], 0x50000000
mov word [edi + 0x12], ax
mov eax, 0x3e8
mov word [edi + 0x14], ax
mov eax, 1
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aad61
add esp, 4
mov dword [edi + 0x1c], eax
mov ecx, 0x4eba54
movzx edx, word [ecx]
mov word [eax], dx
add ecx, 2
add eax, 2
test dx, dx
jne 0x4a2361
inc word [ebx + 0x508]
cmp dword [ebx + 0xa8], 0
je 0x4a23aa
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp - 0x47c]
jle 0x4a23aa
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov ecx, dword [ebp - 0x44c]
mov dword [ebx + 0xc8], ecx
add ecx, eax
mov dword [ebx + 0xd0], ecx
mov eax, dword [ebx + 0x90]
mov ecx, dword [ebx + 0xd4]
mov dword [ebp - 0x440], eax
mov dword [ebx + 0xa0], eax
inc eax
push 0x20
mov dword [ebx + 0x90], eax
mov dword [ebp - 0x410], ecx
call fcn.004aad32
add esp, 4
test eax, eax
je 0x4a23f3
mov dword [eax], vtable.CXDialogItem.0
mov dword [eax + 0x18], 0x82
mov dword [eax + 0x1c], 0
jmp 0x4a23f5
xor eax, eax
movzx edx, word [ebx + 0x508]
mov dword [ebx + edx*4 + 4], eax
movzx eax, word [ebx + 0x508]
mov edi, dword [ebx + eax*4 + 4]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
shr eax, 0x10
mov dword [ebp - 0x414], eax
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
movzx eax, ax
mov dword [edi + 0x18], 0x82
test esi, esi
je 0x4a2484
movsx ecx, ax
mov eax, dword [esi]
add eax, eax
add eax, eax
cdq
idiv ecx
mov dword [ebp - 0x41c], ecx
movsx ecx, word [ebp - 0x414]
mov word [edi + 0xc], ax
mov eax, dword [esi + 4]
add eax, eax
add eax, eax
add eax, eax
cdq
idiv ecx
mov word [edi + 0xe], ax
mov eax, dword [esi + 8]
sub eax, dword [esi]
add eax, eax
add eax, eax
cdq
idiv dword [ebp - 0x41c]
mov word [edi + 0x10], ax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
add eax, eax
add eax, eax
add eax, eax
cdq
idiv ecx
mov word [edi + 0x12], ax
jmp 0x4a249f
xor ecx, ecx
mov eax, 0xa
mov word [edi + 0xc], cx
xor edx, edx
mov ecx, eax
mov word [edi + 0xe], dx
mov word [edi + 0x10], ax
mov word [edi + 0x12], cx
mov eax, dword [ebp - 0x410]
mov dx, word [ebp - 0x440]
mov dword [edi + 8], 0
mov word [edi + 0x14], dx
mov dword [edi + 4], 0x50000000
test eax, eax
je 0x4a24d6
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a24c5
sub eax, edx
sar eax, 1
jmp 0x4a24d8
xor eax, eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aad61
mov ecx, dword [ebp - 0x410]
mov dword [edi + 0x1c], eax
xor edi, edi
add esp, 4
cmp ecx, edi
jne 0x4a2506
mov ecx, 0x4eba54
mov edx, eax
jmp 0x4a2510
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, di
jne 0x4a2510
inc word [ebx + 0x508]
lea eax, [ebx + 0xdc]
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x41c], edi
cmp word [eax], di
jne 0x4a255b
mov eax, dword [ebx + 0x620]
add eax, dword [ebx + 0x600]
mov esi, 2
mov dword [ebp - 0x41c], eax
jmp 0x4a2607
lea edx, [ebp - 0x214]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, di
jne 0x4a2563
lea eax, [ebp - 0x214]
push 0x4ea4c4
push eax
call fcn.004bfb47
add esp, 8
cmp eax, edi
je 0x4a25ff
lea ebx, [ebx]
cmp edi, 4
jge 0x4a25ff
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4a25a0
sub ecx, esi
lea edx, [ebp - 0x458]
push edx
sar ecx, 1
push ecx
push eax
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x458]
add eax, 0x14
cmp eax, dword [ebp - 0x424]
jg 0x4a25dc
mov eax, dword [ebp - 0x424]
cmp dword [ebx + 0x68], 0
je 0x4a25e5
add eax, dword [ebx + 0x7c]
add dword [ebp - 0x410], eax
push 0x4ea4c4
push 0
call fcn.004bfb47
add esp, 8
inc edi
test eax, eax
jne 0x4a2590
mov eax, dword [ebp - 0x41c]
mov esi, edi
cmp dword [ebx + 0x54], 0
je 0x4a261a
inc esi
add eax, dword [ebx + 0x60c]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebx + 0xd0]
mov ecx, dword [ebp - 0x444]
or dword [ebx + 0x5c], 1
cmp eax, ecx
jg 0x4a2630
mov eax, ecx
add eax, 5
cmp dword [ebx + 0x4ec], 0
jne 0x4a2645
cmp dword [ebx + 0x4fc], 0
je 0x4a2648
add eax, 9
mov edx, dword [ebp - 0x41c]
lea ecx, [esi + esi*2]
lea ecx, [edx + ecx*2]
mov edx, dword [ebp - 0x410]
lea edi, [ecx + edx - 6]
mov ecx, dword [ebx + 0x80]
add ecx, eax
push ecx
push edi
push eax
push 0
lea edx, [ebp - 0x470]
push edx
call dword [sym.imp.USER32.dll_SetRect]
cmp dword [ebx + 0x64], esi
jle 0x4a2684
mov dword [ebx + 0x64], 1
mov ecx, dword [ebp - 0x464]
mov edx, dword [ebp - 0x468]
sub edx, dword [ebp - 0x470]
mov eax, dword [ebx + 0x5e8]
add eax, dword [ebx + 0x84]
add ecx, 0xc
mov dword [ebp - 0x428], ecx
mov ecx, dword [ebp - 0x42c]
lea esi, [edx + 0x20]
cmp ecx, esi
mov dword [ebp - 0x454], eax
jg 0x4a26c6
mov ecx, esi
mov dword [ebp - 0x42c], ecx
mov esi, ecx
sub esi, dword [ebp - 0x434]
cmp esi, eax
jge 0x4a26db
lea ecx, [eax + 0x10]
mov dword [ebp - 0x42c], ecx
mov eax, ecx
sub eax, dword [ebp - 0x434]
sub eax, edx
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x46c]
sar esi, 1
cmp dword [ebx + 0xa4], 0
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x410], eax
je 0x4a2714
sub ecx, edi
sub ecx, 0x10
mov esi, ecx
mov dword [ebp - 0x41c], esi
cmp word [ebx + 0xdc], 0
lea edi, [ebx + 0xdc]
jne 0x4a2757
mov edi, dword [ebp - 0x43c]
push 6
mov ecx, esi
mov ebx, 0x11
call fcn.004a2ae0
add esi, eax
mov eax, dword [ebp - 0x410]
push 7
mov ecx, esi
mov ebx, 9
call fcn.004a2ae0
add esi, eax
mov ebx, edi
jmp 0x4a28b7
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.004ba4b0
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x214]
push edi
push ecx
call fcn.004bdc46
add esp, 0xc
lea edx, [ebp - 0x214]
push 0x4ea4c4
push edx
mov dword [ebp - 0x414], 0
call fcn.004bfb47
mov edi, eax
add esp, 8
test edi, edi
je 0x4a28bd
cmp dword [ebp - 0x414], 4
jge 0x4a28b7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a27c4
sub eax, edx
mov edx, dword [ebp - 0x418]
lea ecx, [ebp - 0x420]
push ecx
sar eax, 1
push eax
push edi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x420]
add eax, 0x14
cmp eax, dword [ebp - 0x424]
jg 0x4a2800
mov eax, dword [ebp - 0x424]
cmp dword [ebx + 0x68], 0
je 0x4a2809
add eax, dword [ebx + 0x7c]
mov ecx, dword [ebp - 0x410]
mov edx, dword [ebx + 0x80]
add eax, esi
add edx, ecx
push edx
push eax
push ecx
mov dword [ebp - 0x440], eax
push esi
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x20
call fcn.004aad32
add esp, 4
test eax, eax
je 0x4a2854
mov dword [eax], vtable.CXDialogItem.0
mov dword [eax + 0x18], 0x80
mov dword [eax + 0x1c], 0
jmp 0x4a2856
xor eax, eax
movzx ecx, word [ebx + 0x508]
mov edx, dword [ebp - 0x414]
push edi
mov dword [ebx + ecx*4 + 4], eax
movzx ecx, word [ebx + 0x508]
mov esi, dword [ebx + ecx*4 + 4]
add edx, 0x17
push edx
push 0x80
push ebx
lea eax, [ebp - 0x490]
call fcn.004a44d0
mov esi, dword [ebp - 0x440]
inc word [ebx + 0x508]
push 0x4ea4c4
push 0
add esi, 6
call fcn.004bfb47
inc dword [ebp - 0x414]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a27b2
mov dword [ebp - 0x41c], esi
cmp dword [ebx + 0x54], 0
je 0x4a28ea
mov eax, dword [ebp - 0x410]
mov edi, dword [ebp - 0x43c]
push 0x12d
mov ecx, esi
mov ebx, 0xc
call fcn.004a2ae0
add esi, eax
mov dword [ebp - 0x41c], esi
mov ebx, edi
mov edx, dword [ebx + 0x84]
mov eax, dword [ebp - 0x454]
push edx
push eax
push 0
push 0
lea ecx, [ebp - 0x460]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [ebx + 0x880]
push edx
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x41c]
push eax
lea edx, [ebp - 0x460]
lea eax, [ebp - 0x490]
mov ecx, ebx
call fcn.004a2b80
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x428]
cmp eax, ecx
jl 0x4a2958
lea ecx, [eax + 0x10]
mov dword [ebp - 0x428], ecx
mov edx, dword [ebp - 0x468]
mov eax, dword [ebp - 0x42c]
add edx, 0x10
cmp eax, edx
jge 0x4a2973
mov eax, edx
mov dword [ebp - 0x42c], eax
sub eax, dword [ebp - 0x434]
xor edx, edx
add eax, eax
add eax, eax
mov word [ebx + 0x50a], dx
mov word [ebx + 0x50c], dx
cdq
idiv dword [ebp - 0x438]
mov esi, dword [ebp - 0x418]
mov word [ebx + 0x50e], ax
mov eax, ecx
sub eax, dword [ebp - 0x430]
add eax, eax
add eax, eax
add eax, eax
cdq
idiv dword [ebp - 0x478]
mov word [ebx + 0x510], ax
mov eax, dword [ebp - 0x474]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004b9212
mov esp, ebp
pop ebp
ret 0xc