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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x20]
push esi
push edi
lea eax, [esp + 0x88]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x90], 0
je 0x4b73cd
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4b7191
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0055b558
mov edi, eax
mov dword [esp + 0xc], edi
jmp 0x4b7197
mov dword [esp + 0xc], eax
mov edi, eax
test edi, edi
je 0x4b73cd
cmp dword [0x63c5a0], 0
je 0x4b71ce
mov eax, dword [0x63c59c]
test eax, eax
jne 0x4b71da
push 0x63c4dc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, 0x63c598
call fcn.0055b82d
mov eax, dword [0x63c59c]
jmp 0x4b71d6
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
test eax, eax
je 0x4b71eb
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x48], eax
jmp 0x4b71f3
mov dword [esp + 0x48], 0
push 1
mov ecx, edi
call fcn.0055aeb6
mov edx, dword [0x63ca38]
mov ecx, dword [0x63c450]
mov esi, dword [0x63ca30]
mov eax, edx
sub eax, dword [ecx + 0x17e8]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x8cc]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x8d0]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x8d4]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x8d8]
add eax, 4
mov dword [esp + 0x5c], eax
mov eax, dword [0x63ca1c]
mov dword [esp + 0x68], eax
mov eax, dword [0x63ca2c]
add eax, esi
add eax, dword [0x63ca34]
mov esi, dword [ecx + 0x74]
add eax, dword [0x63ca20]
sub esi, dword [0x63ca24]
add edx, eax
mov dword [esp + 0x6c], eax
lea eax, [ecx + 0x84]
test eax, eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], edx
je 0x4b7285
mov eax, dword [eax + 4]
push 0
push 1
push edi
lea ecx, [esp + 0x74]
mov edx, eax
lea esi, [esp + 0x5c]
call fcn.004f97a0
mov edx, dword [edi]
mov eax, dword [0x63ca6c]
mov edx, dword [edx + 0x30]
add esp, 0xc
push eax
mov ecx, edi
call edx
mov esi, dword [ebx + 0x8e0]
mov eax, dword [ebx + 0x8dc]
mov edi, dword [ebx + 0x8d0]
add edi, dword [esp + 0x40]
add eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x8d8]
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
xor eax, eax
cmp dword [ebx + 0x8f0], eax
mov dword [esp + 0x10], eax
jg 0x4b73da
mov eax, dword [esp + 0x48]
test eax, eax
mov esi, dword [esp + 0xc]
je 0x4b730c
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x2c]
sub eax, dword [ebx + 0x614]
mov ecx, 6
sub eax, edi
cdq
sub eax, edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x90]
sub ecx, dword [ebx + 0x6ac]
sar eax, 1
add eax, edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
sub ecx, 6
lea eax, [ebx + 0x5d4]
lea edx, [esp + 0x48]
mov edi, esi
mov dword [esp + 0x60], ecx
call fcn.0049d2f0
lea eax, [ebx + 0x670]
lea edx, [esp + 0x60]
call fcn.0049d2f0
mov eax, dword [ebx + 0x8f0]
cmp eax, dword [ebx + 0x714]
jge 0x4b73a5
test eax, eax
jl 0x4b77f9
cmp eax, dword [ebx + 0x714]
jge 0x4b77f9
mov edx, dword [ebx + 0x710]
mov ecx, dword [edx + eax*4]
add eax, 1
mov dword [ecx + 0x28], 1
cmp eax, dword [ebx + 0x714]
jl 0x4b7376
mov esi, dword [esp + 0xc]
add ebx, 0x70c
mov eax, esi
call fcn.00479610
cmp dword [ebp + 0xc], 0
jne 0x4b73cd
mov edx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push edx
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x28]
mov edx, ecx
sub edx, esi
test edx, edx
mov dword [esp + 0x44], edx
jle 0x4b7604
cmp eax, dword [ebx + 0x8fc]
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], ecx
push 0
jne 0x4b7513
test eax, eax
mov edx, dword [esp + 0x30]
mov ecx, dword [0x63c450]
mov dword [esp + 0x40], edx
jne 0x4b743f
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 0x17e0]
push edi
push esi
push eax
push 2
push ecx
call fcn.005644f1
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
jmp 0x4b747b
mov eax, dword [ecx + 0x17e4]
mov ecx, dword [ecx + 0x17e0]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov dword [esp + 0x18], ecx
mov eax, esi
sub eax, edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
mov ecx, edi
push ecx
push eax
push edx
mov edx, dword [esp + 0x24]
push 4
push edx
mov dword [esp + 0x48], eax
call fcn.005644f1
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0047a0b0
mov ecx, dword [0x63c450]
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x17e4]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x28]
sar edx, 1
sub eax, edx
mov edx, dword [ebx + 0x8f0]
sub edx, 1
cmp dword [esp + 0x10], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x30], eax
jne 0x4b7502
mov ecx, dword [ecx + 0x17e0]
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 4]
push 0
mov dword [esp + 0x18], ecx
mov ecx, edi
push ecx
push eax
push edx
push 3
mov edx, dword [esp + 0x28]
push edx
call fcn.005644f1
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0047a0b0
mov ecx, dword [0x63c450]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
jmp 0x4b760a
test eax, eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
jne 0x4b7549
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov ecx, dword [0x63c450]
mov ecx, dword [ecx + 0x17e0]
push edi
push esi
push eax
push 0
push ecx
call fcn.005644f1
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.0047a0b0
jmp 0x4b7597
mov eax, dword [0x63c450]
mov eax, dword [eax + 0x17e4]
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
sar ecx, 1
mov eax, esi
sub eax, ecx
mov ecx, edi
add edx, 0xffffffff
cmp edx, dword [ebx + 0x8fc]
push ecx
mov dword [esp + 0x38], eax
push eax
jne 0x4b757f
mov eax, dword [esp + 0x18]
push 5
push eax
jmp 0x4b7586
mov ecx, dword [esp + 0x18]
push 6
push ecx
mov ecx, dword [0x63c450]
add ecx, 0x17dc
call fcn.0047a070
mov ecx, dword [0x63c450]
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x17e4]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x28]
sar edx, 1
sub eax, edx
mov edx, dword [ebx + 0x8f0]
sub edx, 1
cmp dword [esp + 0x10], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x30], eax
jne 0x4b7502
mov ecx, dword [ecx + 0x17e0]
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 4]
push 0
mov dword [esp + 0x18], ecx
mov ecx, edi
push ecx
push eax
push edx
push 1
jmp 0x4b74e4
mov ecx, dword [0x63c450]
cmp eax, dword [ebx + 0x8fc]
jne 0x4b7673
test edx, edx
jle 0x4b7673
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x2c]
add ecx, 3
mov dword [esp + 0x50], esi
mov eax, edi
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0xc]
add eax, 2
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], eax
call fcn.00404720
push eax
mov ecx, 0xfbf2ea
mov edx, 0xffffff
lea ebx, [esp + 0x54]
call fcn.00537150
mov ecx, dword [0x63c450]
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jl 0x4b77f9
cmp eax, dword [ebx + 0x8f0]
jge 0x4b77f9
mov edx, dword [ebx + 0x8ec]
mov eax, dword [edx + eax*4]
add edi, dword [esp + 0x40]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x17e4]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x28]
sar edx, 1
sub eax, edx
sub eax, dword [ecx + 0x17d4]
lea edx, [ecx + 0x17d4]
cmp eax, esi
mov dword [esp + 0x14], eax
jge 0x4b76c3
mov dword [esp + 0x14], esi
push edx
lea eax, [ecx + 0x17cc]
push eax
mov eax, dword [esp + 0x34]
sub eax, dword [ecx + 0x17d8]
add ebx, 0x70c
sub eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
lea ecx, [eax + edi + 1]
push ecx
push edx
push ebx
mov ebx, dword [esp + 0x24]
call fcn.004793e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x63c450]
mov dword [esp + 0x78], esi
add edx, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], edx
add eax, 0xffffffee
mov dword [esp + 0x80], eax
mov edx, dword [ecx + 0x17fc]
mov ecx, dword [esp + 0x60]
lea eax, [edi + edx - 1]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0xc]
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
push 0x8024
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call edx
sub edi, dword [esp + 0x40]
cmp dword [esp + 0x44], 0
jle 0x4b77c8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov eax, dword [0x63c450]
mov edx, dword [eax + 0x17fc]
add edx, edi
push 0
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], edx
mov edx, dword [ebp + 8]
cmp ecx, dword [edx + 0x8fc]
push 1
mov dword [esp + 0x74], edi
lea esi, [esp + 0x70]
push ebx
je 0x4b77b4
mov edx, dword [eax + 0x17f0]
jmp 0x4b77ba
mov edx, dword [eax + 0x17f4]
xor ecx, ecx
call fcn.004f97a0
mov esi, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x8dc]
add dword [esp + 0x28], eax
add esi, eax
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, dword [ecx + 0x8f0]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], eax
mov ebx, ecx
jl 0x4b73d6
jmp 0x4b72f5
call fcn.00555520
int3