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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x53f100]
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 0x4b3530
mov dword [ebx + 0xa4], ecx
cmp edx, edi
jne 0x4b3530
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebx + 0x4f8], eax
mov eax, dword [ebx + 0x4f8]
cmp eax, edi
je 0x4b3547
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 0x4b35cc
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.004cca60
lea eax, [esi + 0x644]
add esp, 0xc
sub edi, eax
jmp 0x4b3610
movzx ecx, word [eax]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x4b3610
push 0xc8
lea edx, [ebx + 0x512]
push 0
push edx
call fcn.004cca60
add esp, 0xc
push 0x20000
call fcn.004bc681
add esp, 4
mov dword [ebx + 0xd4], eax
test eax, eax
je 0x4b3651
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebx + 0xd4]
push 0x20000
push 0
push edx
call fcn.004cca60
add esp, 0xc
push 0x20000
call fcn.004bc681
add esp, 4
mov dword [ebx + 0xd8], eax
test eax, eax
je 0x4b3683
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebx + 0xd8]
push 0x20000
push 0
push edx
call fcn.004cca60
mov edi, dword [ebx + 0xbc]
add esp, 0xc
mov dword [ebp - 0x418], edi
test edi, edi
jne 0x4b36b8
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 0x4b3712
mov ecx, eax
shr ecx, 0x10
push 0xffff
test ecx, ecx
jne 0x4b36f3
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 0x4b3703
mov ecx, dword [ebx + 0xd4]
xor edx, edx
mov word [ecx], dx
jmp 0x4b3703
push eax
mov eax, dword [ebx + 0xd4]
push eax
call fcn.004cf09b
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 0x4b376c
mov ecx, eax
shr ecx, 0x10
push 0xffff
test ecx, ecx
jne 0x4b374d
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 0x4b375d
mov ecx, dword [ebx + 0xd8]
xor edx, edx
mov word [ecx], dx
jmp 0x4b375d
push eax
mov eax, dword [ebx + 0xd8]
push eax
call fcn.004cf09b
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.004cca60
mov eax, dword [esi + 0x22c]
add esp, 0xc
test eax, eax
je 0x4b37a9
push 0x103
push edi
push eax
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4b37a9
xor ecx, ecx
mov word [edi], cx
cmp word [edi], 0
jne 0x4b37ce
cmp word [esi + 0x230], 0
lea eax, [esi + 0x230]
je 0x4b37ce
push 0x103
push eax
push edi
call fcn.004cf09b
add esp, 0xc
xor edx, edx
push 0xc8
push edx
lea edi, [ebx + 0xf88]
push edi
mov word [ebx + 0x2e2], dx
call fcn.004cca60
mov eax, dword [esi + 0x438]
add esp, 0xc
test eax, eax
je 0x4b3810
push 0x63
push edi
push eax
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x4b3810
xor ecx, ecx
mov word [edi], cx
cmp word [edi], 0
jne 0x4b3832
cmp word [esi + 0x43c], 0
lea eax, [esi + 0x43c]
je 0x4b3832
push 0x63
push eax
push edi
call fcn.004cf09b
add esp, 0xc
xor edx, edx
mov edi, ebx
mov word [ebx + 0x104e], dx
call fcn.004b49e0
cmp dword [esi + 0x864], 0
je 0x4b385c
mov edi, esi
add edi, 0x868
mov esi, ebx
call fcn.004b4660
jmp 0x4b3868
mov eax, dword [ebp - 0x418]
push eax
call fcn.004b4a60
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 0x4b38e0
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 0x4b391c
mov eax, dword [ebp - 0x424]
cmp dword [ebx + 0x68], 0
je 0x4b3925
add eax, dword [ebx + 0x7c]
mov dword [edi], eax
add edi, 4
add esi, 0xc8
sub dword [ebp - 0x410], 1
jne 0x4b38d8
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 0x4b3960
push 0
call esi
cdq
sub eax, edx
sar eax, 1
sub eax, 0xa
cmp dword [ebx + 0xac], 0
je 0x4b397d
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 0x528e5c
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 0x4b3a3a
add dword [ebp - 0x42c], 0x10
mov edx, dword [ebp - 0x428]
sub edx, dword [ebp - 0x430]
cmp edx, 0x46
jge 0x4b3a55
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 0x4b3ada
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp - 0x414]
cmp dword [ecx + 0x20], 0
je 0x4b3aec
movzx ecx, word [ecx + 0x20]
jmp 0x4b3af5
add ecx, 0x24
cmp word [ecx], 0
je 0x4b3b03
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebx + 0x4ec], eax
cmp dword [ebx + 0x4ec], 0
je 0x4b3cca
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 0x4b3b62
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.004bc652
add esp, 4
test eax, eax
je 0x4b3ba5
mov dword [eax], vtable.CXDialogItem.0
mov dword [eax + 0x18], 0x82
mov dword [eax + 0x1c], 0
jmp 0x4b3ba7
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.004bc681
add esp, 4
mov dword [edi + 0x1c], eax
mov ecx, 0x50107c
movzx edx, word [ecx]
mov word [eax], dx
add ecx, 2
add eax, 2
test dx, dx
jne 0x4b3c81
inc word [ebx + 0x508]
cmp dword [ebx + 0xa8], 0
je 0x4b3cca
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp - 0x47c]
jle 0x4b3cca
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.004bc652
add esp, 4
test eax, eax
je 0x4b3d13
mov dword [eax], vtable.CXDialogItem.0
mov dword [eax + 0x18], 0x82
mov dword [eax + 0x1c], 0
jmp 0x4b3d15
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 0x4b3da4
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 0x4b3dbf
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 0x4b3df6
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b3de5
sub eax, edx
sar eax, 1
jmp 0x4b3df8
xor eax, eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bc681
mov ecx, dword [ebp - 0x410]
mov dword [edi + 0x1c], eax
xor edi, edi
add esp, 4
cmp ecx, edi
jne 0x4b3e26
mov ecx, 0x50107c
mov edx, eax
jmp 0x4b3e30
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, di
jne 0x4b3e30
inc word [ebx + 0x508]
lea eax, [ebx + 0xdc]
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x41c], edi
cmp word [eax], di
jne 0x4b3e7b
mov eax, dword [ebx + 0x620]
add eax, dword [ebx + 0x600]
mov esi, 2
mov dword [ebp - 0x41c], eax
jmp 0x4b3f27
lea edx, [ebp - 0x214]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, di
jne 0x4b3e83
lea eax, [ebp - 0x214]
push 0x4ffaac
push eax
call fcn.004cc4a5
add esp, 8
cmp eax, edi
je 0x4b3f1f
lea ebx, [ebx]
cmp edi, 4
jge 0x4b3f1f
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4b3ec0
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 0x4b3efc
mov eax, dword [ebp - 0x424]
cmp dword [ebx + 0x68], 0
je 0x4b3f05
add eax, dword [ebx + 0x7c]
add dword [ebp - 0x410], eax
push 0x4ffaac
push 0
call fcn.004cc4a5
add esp, 8
inc edi
test eax, eax
jne 0x4b3eb0
mov eax, dword [ebp - 0x41c]
mov esi, edi
cmp dword [ebx + 0x54], 0
je 0x4b3f3a
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 0x4b3f50
mov eax, ecx
add eax, 5
cmp dword [ebx + 0x4ec], 0
jne 0x4b3f65
cmp dword [ebx + 0x4fc], 0
je 0x4b3f68
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 0x4b3fa4
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 0x4b3fe6
mov ecx, esi
mov dword [ebp - 0x42c], ecx
mov esi, ecx
sub esi, dword [ebp - 0x434]
cmp esi, eax
jge 0x4b3ffb
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 0x4b4034
sub ecx, edi
sub ecx, 0x10
mov esi, ecx
mov dword [ebp - 0x41c], esi
cmp word [ebx + 0xdc], 0
lea edi, [ebx + 0xdc]
jne 0x4b4077
mov edi, dword [ebp - 0x43c]
push 6
mov ecx, esi
mov ebx, 0x11
call fcn.004b4400
add esi, eax
mov eax, dword [ebp - 0x410]
push 7
mov ecx, esi
mov ebx, 9
call fcn.004b4400
add esi, eax
mov ebx, edi
jmp 0x4b41d7
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.004cca60
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x214]
push edi
push ecx
call fcn.004cf09b
add esp, 0xc
lea edx, [ebp - 0x214]
push 0x4ffaac
push edx
mov dword [ebp - 0x414], 0
call fcn.004cc4a5
mov edi, eax
add esp, 8
test edi, edi
je 0x4b41dd
cmp dword [ebp - 0x414], 4
jge 0x4b41d7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b40e4
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 0x4b4120
mov eax, dword [ebp - 0x424]
cmp dword [ebx + 0x68], 0
je 0x4b4129
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.004bc652
add esp, 4
test eax, eax
je 0x4b4174
mov dword [eax], vtable.CXDialogItem.0
mov dword [eax + 0x18], 0x80
mov dword [eax + 0x1c], 0
jmp 0x4b4176
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.004b5df0
mov esi, dword [ebp - 0x440]
inc word [ebx + 0x508]
push 0x4ffaac
push 0
add esi, 6
call fcn.004cc4a5
inc dword [ebp - 0x414]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b40d2
mov dword [ebp - 0x41c], esi
cmp dword [ebx + 0x54], 0
je 0x4b420a
mov eax, dword [ebp - 0x410]
mov edi, dword [ebp - 0x43c]
push 0x12d
mov ecx, esi
mov ebx, 0xc
call fcn.004b4400
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.004b44a0
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x428]
cmp eax, ecx
jl 0x4b4278
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 0x4b4293
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.004cb516
mov esp, ebp
pop ebp
ret 0xc