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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445d59
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x459668]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov eax, dword [0x459668]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0x18]
push eax
mov ebx, ecx
mov dword [esp + 0x28], esi
call fcn.004165c5
lea ecx, [esp + 0x70]
mov edi, eax
call fcn.0041605a
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x1d8], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x64], eax
jne 0x403fe3
mov dword [esp + 0x50], eax
jmp 0x403fea
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetFocus]
xor edx, edx
cmp dword [esp + 0x50], eax
mov dword [esp + 0x50], 0
sete dl
mov dword [esp + 0x68], edx
call fcn.00419091
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40401f
push 0x80004005
call fcn.00402a70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor ecx, ecx
mov eax, vtable.CFont.0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xcc], eax
cmp edi, ecx
mov byte [esp + 0x1d8], 4
jne 0x404070
xor eax, eax
jmp 0x404073
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x74]
call fcn.004165d3
mov ecx, dword [ebx + 0x20]
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0041688c
mov eax, dword [eax + 4]
lea edx, [esp + 0x164]
push edx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x88]
call fcn.0041689a
mov edx, dword [esp + 0x174]
lea eax, [esp + 0x164]
push eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x178], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0xd8]
call fcn.0041689a
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x164]
push edx
mov dword [esp + 0x178], ecx
mov byte [esp + 0x17d], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0xd0]
call fcn.0041689a
mov eax, dword [esp + 0x88]
test eax, eax
je 0x40413e
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebx + 0x20]
push 0
push 1
push 0x1002
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.00419e8f
mov edx, dword [ebx + 0x20]
push 0
push 2
push 0x1002
push edx
mov dword [esp + 0x5c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.00419e8f
push 0x34
mov dword [esp + 0x70], eax
lea eax, [esp + 0x134]
push 0
push eax
call fcn.0042f480
mov edx, dword [ebx + 0x20]
add esp, 0xc
lea ecx, [esp + 0x130]
push ecx
push 0
push 0x104b
push edx
mov dword [esp + 0x140], 0xa
mov dword [esp + 0x144], esi
mov dword [esp + 0x150], 3
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
lea eax, [esp + 0xa0]
push eax
push esi
mov ecx, ebx
call fcn.004199cf
sub dword [esp + 0x9c], 5
push 2
lea ecx, [esp + 0x3c]
push ecx
push esi
mov ecx, ebx
call fcn.004199cf
sub dword [esp + 0x38], 5
push 0
lea edx, [esp + 0x58]
push edx
push esi
mov ecx, ebx
call fcn.004199cf
test esi, esi
jl 0x4042ee
cmp esi, dword [ebx + 0xa4]
jge 0x4042ee
mov eax, dword [esp + 0x24]
mov esi, dword [ebx + 0xa0]
add eax, eax
add eax, eax
add esi, eax
call fcn.004060e0
test al, al
jne 0x4042f3
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebx + 0x194]
jge 0x4042ee
mov eax, dword [ebx + 0x190]
add ecx, ecx
add ecx, ecx
add eax, ecx
cmp dword [eax], 1
je 0x4042f3
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
lea eax, [esi + 6]
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x28], eax
mov eax, ecx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x3c]
sar ecx, 1
lea edx, [eax + ecx - 0xf]
mov dword [esp + 0x8c], esi
mov esi, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x98], eax
sub eax, esi
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x8c], edx
cdq
sub eax, edx
sar eax, 1
add esi, eax
mov eax, 0xf
sub eax, ecx
add dword [esp + 0x98], eax
mov dword [esp + 0x90], esi
jmp 0x40431d
call fcn.00417047
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
add eax, 6
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x44]
add ecx, 1
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
xor edx, edx
test byte [esp + 0x13c], 2
mov dword [esp + 0x38], edx
mov dword [esp + 0x54], edx
je 0x4044bd
cmp dword [esp + 0x68], edx
je 0x4043f4
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebx + 0x194]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x80]
mov dword [esp + 0x68], eax
jge 0x4042ee
mov eax, dword [ebx + 0x190]
lea esi, [ecx*4]
add eax, esi
cmp dword [eax], edx
jne 0x4043a6
mov eax, dword [ebx + 0x1c0]
test al, 2
je 0x4043a6
test al, 8
mov ecx, dword [ebx + 0x1cc]
mov dword [esp + 0x20], ecx
je 0x404563
mov edx, dword [ebx + 0x1d8]
mov eax, dword [ebx + 0x1e4]
jmp 0x40455b
cmp ecx, dword [ebx + 0x194]
jge 0x4042ee
mov eax, dword [ebx + 0x190]
add eax, esi
cmp dword [eax], 1
jne 0x404563
mov eax, dword [ebx + 0x1c0]
test al, 4
je 0x404563
test al, 8
mov ecx, dword [ebx + 0x1f0]
mov dword [esp + 0x20], ecx
je 0x404563
mov edx, dword [ebx + 0x1fc]
mov eax, dword [ebx + 0x208]
jmp 0x40455b
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x80], ecx
mov ecx, dword [ebx + 0x84]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebx + 0x194]
mov dword [esp + 0x48], eax
jge 0x4042ee
mov eax, dword [ebx + 0x190]
lea esi, [ecx*4]
add eax, esi
cmp dword [eax], edx
jne 0x404467
mov eax, dword [ebx + 0x1c0]
test al, 2
je 0x404467
test al, 8
mov edx, dword [ebx + 0x1d0]
mov dword [esp + 0x20], edx
je 0x404563
mov eax, dword [ebx + 0x1dc]
mov ecx, dword [ebx + 0x1e8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x404563
cmp ecx, dword [ebx + 0x194]
jge 0x4042ee
mov eax, dword [ebx + 0x190]
add eax, esi
cmp dword [eax], 1
jne 0x404563
mov eax, dword [ebx + 0x1c0]
test al, 4
je 0x404563
test al, 8
mov edx, dword [ebx + 0x1f4]
mov dword [esp + 0x20], edx
je 0x404563
mov eax, dword [ebx + 0x200]
mov ecx, dword [ebx + 0x20c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x404563
mov ecx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebx + 0x194]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x68], eax
jge 0x4042ee
mov eax, dword [ebx + 0x190]
lea esi, [ecx*4]
add eax, esi
cmp dword [eax], edx
jne 0x40451e
mov eax, dword [ebx + 0x1c0]
test al, 2
je 0x40451e
test al, 8
mov ecx, dword [ebx + 0x1c8]
mov dword [esp + 0x20], ecx
je 0x404563
mov edx, dword [ebx + 0x1d4]
mov eax, dword [ebx + 0x1e0]
jmp 0x40455b
cmp ecx, dword [ebx + 0x194]
jge 0x4042ee
mov eax, dword [ebx + 0x190]
add eax, esi
cmp dword [eax], 1
jne 0x404563
mov eax, dword [ebx + 0x1c0]
test al, 4
je 0x404563
test al, 8
mov ecx, dword [ebx + 0x1ec]
mov dword [esp + 0x20], ecx
je 0x404563
mov edx, dword [ebx + 0x1f8]
mov eax, dword [ebx + 0x204]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
mov edx, dword [edi]
mov eax, dword [esp + 0x80]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x24]
cmp eax, dword [ebx + 0x194]
mov dword [esp + 0x110], 3
jge 0x4042ee
mov eax, dword [ebx + 0x190]
add eax, esi
mov eax, dword [eax]
sub eax, 0
je 0x4048b0
sub eax, 1
jne 0x40531c
test byte [ebx + 0x1c0], 4
je 0x404763
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4045c3
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x74]
push eax
push ecx
call fcn.0041691f
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov esi, dword [sym.imp.GDI32.dll_GetObjectW]
lea edx, [esp + 0xac]
push edx
push 0x18
push ecx
call esi
test byte [ebx + 0x1c0], 8
je 0x404704
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404600
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x74]
push eax
push edx
call fcn.0041691f
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
mov dword [esp + 0x64], eax
lea eax, [esp + 0xac]
push eax
push 0x18
push edx
call esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0xb0]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0xb8]
push edx
push eax
mov eax, dword [esp + 0x60]
push eax
push edi
lea eax, [esp + 0x84]
mov dword [esp + 0x64], edx
call fcn.00406820
cmp dword [esp + 0x1c], 0
jne 0x40465f
xor eax, eax
jmp 0x404666
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x74]
push eax
push edx
call fcn.0041691f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xac]
push eax
push 0x18
push edx
call esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0xb0]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0xb8]
push edx
push eax
mov eax, dword [esp + 0x68]
sub eax, edx
push eax
push edi
lea eax, [esp + 0x84]
mov dword [esp + 0x60], edx
call fcn.00406820
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x74]
push eax
push edx
call fcn.0041691f
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xac]
push eax
push 0x18
push edx
call esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
sub esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x58]
sub esi, edx
sub esi, ecx
push esi
push eax
add edx, ecx
push edx
jmp 0x404746
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.0041691f
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0x68], eax
mov eax, dword [edx + 4]
push 0x18
push eax
call esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x58]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
push edi
lea eax, [esp + 0x84]
call fcn.00406820
jmp 0x404776
mov eax, dword [ebx + 0x88]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
call fcn.00418b41
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
cmp edx, dword [esp + 0xa4]
jl 0x4052fd
mov eax, dword [ebx + 0x1c0]
test al, 2
je 0x4047bb
test al, 8
je 0x4047bb
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x30]
mov ecx, eax
sub ecx, dword [esp + 0x28]
add eax, 0x12
lea ecx, [edx + ecx + 0x12]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], eax
jmp 0x4047c6
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x28], edx
mov eax, 2
add dword [esp + 0x2c], eax
add dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x10c]
push ecx
mov ecx, ebx
call fcn.00419f6e
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 0xa
call fcn.00406ac0
mov byte [esp + 0x1d8], 4
mov eax, dword [esp + 0x104]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404826
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x40483c
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, 1
add dword [esp + 0x2c], ebx
add dword [esp + 0x34], ebx
add dword [esp + 0x28], ebx
add dword [esp + 0x30], ebx
mov edx, dword [edi]
mov eax, dword [edx + 0x30]
push 0xffffff
mov ecx, edi
call eax
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x24
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
mov ecx, edi
call edx
sub dword [esp + 0x2c], ebx
sub dword [esp + 0x34], ebx
sub dword [esp + 0x28], ebx
sub dword [esp + 0x30], ebx
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
push 0x55432c
mov ecx, edi
call edx
mov eax, dword [esi - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x24
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
mov ecx, edi
call edx
jmp 0x405301
mov eax, dword [ebx + 0x1c0]
test al, 2
je 0x404a53
test al, 8
je 0x4049ec
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4048d1
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.0041691f
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0x68], eax
mov eax, dword [edx + 4]
push 0x18
push eax
call esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0xb0]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0xb8]
push edx
push eax
mov eax, dword [esp + 0x60]
push eax
push edi
lea eax, [esp + 0x84]
mov dword [esp + 0xd8], edx
call fcn.00406820
cmp dword [esp + 0x1c], 0
jne 0x404939
xor eax, eax
jmp 0x404940
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x74]
push eax
push edx
call fcn.0041691f
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xac]
push eax
push 0x18
push edx
call esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0xb0]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0xb8]
push edx
push eax
mov eax, dword [esp + 0x68]
sub eax, edx
push eax
push edi
lea eax, [esp + 0x84]
mov dword [esp + 0x2c], edx
call fcn.00406820
cmp dword [esp + 0x20], 0
jne 0x40499d
xor eax, eax
jmp 0x4049a4
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x74]
push eax
push edx
call fcn.0041691f
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xac]
push eax
push 0x18
push edx
call esi
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
sub esi, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
sub eax, ecx
push eax
mov eax, dword [esp + 0xc8]
sub esi, eax
sub esi, edx
push esi
push ecx
add eax, edx
push eax
jmp 0x404a36
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4049f7
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x74]
push eax
push ecx
call fcn.0041691f
lea edx, [esp + 0xac]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
push edx
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
sub edx, eax
push edx
mov edx, dword [esp + 0x60]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc0]
push edi
lea eax, [esp + 0x84]
call fcn.00406820
jmp 0x404a66
mov eax, dword [ebx + 0x88]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
call fcn.00418b41
test byte [ebx + 0x1bc], 2
je 0x404b3c
mov edx, dword [esp + 0x24]
push 0
push edx
lea eax, [esp + 0x114]
push eax
mov ecx, ebx
call fcn.00419f6e
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 5
call fcn.00406ac0
mov byte [esp + 0x1d8], 4
mov eax, dword [esp + 0x10c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ac6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
sub eax, ecx
sub eax, 0x20
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x404af9
push 1
push eax
mov edx, 0x16
push edx
mov edx, dword [esp + 0x158]
push edx
push edi
call fcn.00406630
mov eax, dword [esp + 0xa4]
sub eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
add eax, 0x1c
cmp ecx, eax
mov dword [esp + 0x28], eax
jl 0x404e91
mov eax, dword [esi - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x24
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
mov ecx, edi
call edx
jmp 0x404e91
mov eax, dword [ebx + 0x1c0]
test al, 2
je 0x404b7a
test al, 8
je 0x404b7a
mov eax, 0x28
add dword [esp + 0x28], eax
add dword [esp + 0x30], eax
add dword [esp + 0x8c], eax
mov esi, 0x1c
add dword [esp + 0x9c], esi
add dword [esp + 0xa4], esi
add dword [esp + 0x94], eax
jmp 0x404b7f
mov esi, 1
mov eax, dword [esp + 0x40]
mov ecx, eax
sub ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x9c]
jl 0x404bf9
cmp dword [esp + 0x6c], 0
je 0x404bf9
mov edx, dword [esp + 0x24]
push edx
mov ecx, ebx
call fcn.0041a125
mov ecx, dword [esp + 0x3c]
test eax, eax
mov eax, dword [esp + 0x44]
push 1
je 0x404bd0
sub eax, ecx
add eax, 0xfffffff0
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx - 1]
mov eax, dword [esp + 0xa0]
push ecx
sub eax, esi
push eax
push 1
jmp 0x404beb
sub eax, ecx
add eax, 0xfffffff0
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx - 1]
mov eax, dword [esp + 0xa0]
push ecx
sub eax, esi
push eax
push 0
mov ecx, dword [esp + 0x7c]
push edi
call fcn.00406630
mov eax, dword [esp + 0x40]
mov ecx, eax
sub ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0xa4]
jl 0x404d45
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x404c47
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
sub eax, esi
add eax, 0xffffffe0
cdq
sub eax, edx
mov edx, dword [esp + 0x9c]
sar eax, 1
push 1
lea eax, [eax + esi - 1]
push eax
mov eax, dword [esp + 0x154]
push edx
push eax
push edi
call fcn.00406630
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x28]
jl 0x404d45
mov esi, dword [esp + 0x24]
push 0
push esi
lea ecx, [esp + 0x104]
push ecx
mov ecx, ebx
call fcn.00419f6e
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 6
call fcn.00406ac0
lea ecx, [esp + 0xfc]
mov byte [esp + 0x1d8], 4
call fcn.00403060
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
add ecx, 0xffffffec
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x44]
push ecx
mov dword [eax + 0xc], ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0xdc], esp
push edx
call fcn.00406bd0
lea eax, [esp + 0x11c]
push eax
push ebx
call fcn.00403a70
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 7
call fcn.00406ac0
lea ecx, [esp + 0x108]
mov byte [esp + 0x1d8], 4
call fcn.00403060
cmp esi, dword [ebx + 0xa4]
jge 0x4042ee
mov eax, dword [esp + 0x24]
mov esi, dword [ebx + 0xa0]
add eax, eax
add eax, eax
add esi, eax
call fcn.004060e0
test al, al
je 0x404f2c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
mov edx, dword [edi]
push 0x124
lea esi, [esp + 0x2c]
push esi
push eax
mov eax, dword [edx + 0x68]
push ecx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebx + 0xa4]
jge 0x4042ee
mov esi, dword [ebx + 0xa0]
mov eax, ecx
add eax, eax
add eax, eax
add esi, eax
call fcn.00406150
test al, al
je 0x404e8d
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebx + 0xa4]
jge 0x4042ee
mov eax, dword [ebx + 0xa0]
add ecx, ecx
add ecx, ecx
add eax, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00406ac0
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xa0]
add ecx, 0xffffffec
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0xa8]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0xdc], esp
mov esi, esp
push eax
call fcn.00406b40
add esp, 4
lea edx, [esp + 0xf8]
push edx
add eax, 0x10
push ebx
mov dword [esi], eax
call fcn.00403a70
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 8
call fcn.00406ac0
mov byte [esp + 0x1d8], 4
mov eax, dword [esp + 0xe4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x404e49
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi]
mov eax, dword [esp + 0x48]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x40]
mov ecx, eax
sub ecx, dword [esp + 0x38]
push 0x124
cmp ecx, dword [esp + 0xa8]
lea esi, [esp + 0x90]
push esi
jl 0x404f3e
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, edi
call eax
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x110]
push ecx
push 1
push 0x105f
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x405301
mov eax, dword [esp + 0x40]
mov ecx, eax
add eax, dword [esp + 0x118]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], eax
sub eax, ecx
cmp eax, 0xc
jl 0x4052d0
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], 1
jl 0x4042ee
cmp eax, dword [ebx + 0x180]
jge 0x4042ee
lea esi, [eax*4]
mov eax, dword [ebx + 0x17c]
add eax, esi
cmp dword [eax], 0
jne 0x404f55
mov eax, dword [esp + 0x114]
and eax, 3
sub eax, 0
je 0x404f4d
sub eax, 1
jne 0x404f55
mov dword [esp + 0x18], 2
jmp 0x404f55
mov eax, dword [esp + 0xd8]
push edi
call fcn.00402c30
jmp 0x404d29
add eax, 6
mov dword [esp + 0x94], eax
jmp 0x404e7b
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0xf0]
push edx
mov ecx, ebx
call fcn.00419f6e
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1dc], 9
call fcn.00406ac0
mov byte [esp + 0x1d8], 4
mov eax, dword [esp + 0xe8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xf0], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xf8], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf4], ecx
add eax, 6
add ecx, 0xfffffffa
cmp edx, dword [ebx + 0x180]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
jge 0x4042ee
mov eax, dword [ebx + 0x17c]
add eax, esi
cmp dword [eax], 0
jne 0x405021
mov eax, dword [esp + 0x88]
test eax, eax
je 0x405018
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x80]
jmp 0x405054
cmp edx, dword [ebx + 0x180]
jge 0x4042ee
mov eax, dword [ebx + 0x17c]
add eax, esi
cmp dword [eax], 1
jne 0x405082
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x405050
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x68]
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
or ecx, 0x24
push ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
mov ecx, edi
call edx
jmp 0x4052d0
cmp edx, dword [ebx + 0x180]
jge 0x4042ee
mov eax, dword [ebx + 0x17c]
add eax, esi
cmp dword [eax], 1
jbe 0x4052cc
mov eax, 1
cmp edx, eax
jle 0x4050d7
test eax, eax
jl 0x4042ee
cmp eax, dword [ebx + 0x180]
jge 0x4042ee
mov ecx, dword [ebx + 0x17c]
cmp dword [ecx + eax*4], 1
lea ecx, [ecx + eax*4]
jbe 0x4050d0
add dword [esp + 0x50], 1
add eax, 1
cmp eax, edx
jl 0x4050a8
mov eax, dword [esp + 0x88]
test eax, eax
je 0x4050ed
mov edx, dword [edi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x14]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4050f6
sub eax, edx
mov edx, dword [edi + 4]
lea ecx, [esp + 0xdc]
push ecx
sar eax, 1
push eax
push esi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0xdc]
mov ecx, dword [edi + 4]
sub eax, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0xec]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xdc]
push eax
push 4
push 0x44d998
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0xdc]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov dword [esp + 0xc4], eax
mov eax, dword [eax + 0xb8]
test eax, eax
mov dword [esp + 0x100], edx
mov dword [esp + 0xc8], eax
mov dword [esp + 0x48], 0
jle 0x4052d0
lea ecx, [ecx]
mov eax, dword [esp + 0x48]
test eax, eax
jl 0x4042ee
mov ecx, dword [esp + 0xc4]
cmp eax, dword [ecx + 0xb8]
jge 0x4042ee
mov ecx, dword [ecx + 0xb4]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
lea eax, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, eax
mov dword [esp + 0x20], eax
je 0x405220
cmp dword [eax + 0xc], 0
lea esi, [eax + 0xc]
mov dword [esp + 0x6c], esi
jl 0x40520e
mov esi, dword [ecx]
cmp esi, dword [eax]
jne 0x40520e
push ecx
call fcn.00406b40
mov edx, dword [esp + 0x70]
mov esi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x405205
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x405220
mov eax, dword [edx - 0xc]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00406920
mov esi, dword [esp + 0x14]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405225
sub eax, edx
mov edx, dword [edi + 4]
lea ecx, [esp + 0xdc]
push ecx
sar eax, 1
push eax
push esi
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0x100]
mov dword [esp + 0xec], eax
add eax, ecx
mov dword [esp + 0xf4], eax
add eax, edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x405286
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi]
mov eax, dword [esp + 0x68]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
or ecx, 0x24
push ecx
lea ecx, [esp + 0xf0]
push ecx
push eax
push esi
mov ecx, edi
call edx
mov eax, dword [esp + 0x48]
add eax, 1
cmp eax, dword [esp + 0xc8]
mov dword [esp + 0x48], eax
jl 0x405190
jmp 0x4052d0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x110]
push ecx
add eax, 1
push eax
push 0x105f
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x404eba
jmp 0x405301
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x64], 0
je 0x405320
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x74]
push eax
push ecx
call fcn.0041691f
jmp 0x405320
mov esi, dword [esp + 0x14]
mov byte [esp + 0x1d8], 3
mov edi, vtable.CFont.0
lea ecx, [esp + 0xcc]
mov dword [esp + 0xcc], edi
call fcn.00402c90
mov byte [esp + 0x1d8], 2
lea ecx, [esp + 0xd4]
mov dword [esp + 0xd4], edi
call fcn.00402c90
mov byte [esp + 0x1d8], 1
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], edi
call fcn.00402c90
add esi, 0xfffffff0
mov byte [esp + 0x1d8], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40539a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x1d8], 0xffffffff
call fcn.0041664d
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.0042e86d
mov esp, ebp
pop ebp
ret 4