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

Disassembly:
push 0xffffffffffffffff
push 0x1007be98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov eax, dword [0x10098a04]
push ebx
push esi
mov esi, ecx
mov ecx, 0x10098a04
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov edx, dword [0x10098a04]
xor ebx, ebx
mov ecx, 0x10098a04
mov dword [esp + 0x78], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esi + 0x178]
mov byte [esp + 0x80], 1
call fcn.10012240
test eax, eax
je 0x1002bdb1
cmp dword [esi + 0x68], ebx
je 0x1002bdb1
push edi
mov edx, dword [esi + 4]
push ebx
push ebx
push 0x31
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0x44]
push edx
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x38]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov dword [esp + 0x1c], ebx
cmp dword [esi + 0x5c], ebx
mov edi, dword [esp + 0x84]
mov byte [esp + 0x7c], 3
je 0x1002bb18
mov edx, dword [edi + 0x10]
push 0xff8000
mov byte [esp + 0x51], 1
push edx
jmp 0x1002bb21
mov eax, dword [edi + 0x10]
push 0xff0000
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebp
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edx, dword [edi + 0x10]
push eax
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [edi + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x58]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
lea ebx, [eax + 5]
add eax, 0x19
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x170]
mov dword [esp + 0x2c], eax
lea eax, [edx + eax + 0x64]
push ecx
add ebp, 4
mov dword [esp + 0x38], eax
call fcn.10010ca0
test eax, eax
jle 0x1002bbaf
mov eax, dword [edi + 0x10]
mov edx, dword [esi + 0x170]
push 0
push ebp
push ebx
push eax
push 0
push edx
call fcn.10016690
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 4]
mov edx, 1
sub edx, ecx
mov ecx, dword [eax - 8]
dec ecx
or ecx, edx
jge 0x1002bbd4
push 1
lea ecx, [esp + 0x14]
call fcn.100029f0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 4]
mov edx, 1
sub edx, ecx
mov ecx, dword [eax - 8]
dec ecx
or ecx, edx
jge 0x1002bbf5
push 1
lea ecx, [esp + 0x14]
call fcn.100029f0
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push edx
push eax
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [edi + 0x10]
push ebp
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentExPointA]
test eax, eax
je 0x1002bd55
mov ecx, dword [esi + 0x68]
mov eax, dword [esp + 0x24]
sub ecx, 0x19
cmp eax, ecx
jle 0x1002bd55
mov edx, dword [esp + 0x10]
mov ebx, dword [edx - 0xc]
test ebx, ebx
jle 0x1002bd55
push ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.10020210
add esp, 0xc
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx - 4]
mov edx, 1
sub edx, eax
mov eax, dword [ecx - 8]
dec eax
or eax, edx
mov byte [esp + 0x80], 4
jge 0x1002bc8c
push 1
lea ecx, [esp + 0x8c]
call fcn.100029f0
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx - 4]
mov edx, 1
sub edx, eax
mov eax, dword [ecx - 8]
dec eax
or eax, edx
jge 0x1002bcb3
push 1
lea ecx, [esp + 0x8c]
call fcn.100029f0
mov ecx, dword [esp + 0x88]
mov eax, dword [esi + 0x68]
lea edx, [esp + 0x24]
push edx
push 0
push 0
push eax
push ecx
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [edi + 0x10]
push eax
push ebp
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentExPointA]
test eax, eax
je 0x1002bd2c
mov edx, dword [esi + 0x68]
mov eax, dword [esp + 0x24]
sub edx, 0x19
cmp eax, edx
jl 0x1002bd1b
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
mov byte [esp + 0x80], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002bd10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
dec ebx
test ebx, ebx
jg 0x1002bc40
jmp 0x1002bd55
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x14]
call fcn.10004aa0
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
mov byte [esp + 0x80], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002bd55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x10]
push 0x20
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call edi
test eax, eax
pop ebp
jne 0x1002bd95
test esi, esi
je 0x1002bd95
push esi
call edi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x7c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jmp 0x1002bdca
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x78], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002bdd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002bdfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x70]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 4