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

Disassembly:
push 0xffffffffffffffff
push 0x10027bab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x40]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xc4]
xor edi, edi
push edi
push edx
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.1000fbf0
mov eax, dword [0x1002cd98]
lea ecx, [esp + 0x44]
mov dword [esp + 0xbc], edi
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x1e8]
add eax, 0x1f80
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.1000b6e0
mov eax, dword [esp + 0x40]
add esp, 0x10
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 9
mov ecx, ebx
call fcn.10012060
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor edx, edx
push edi
mov dword [esp + 0x28], edx
push edi
mov dword [esp + 0x30], edx
push 0x406
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], edx
call esi
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x54], eax
jle 0x1001d7b6
jmp 0x1001d4f5
xor edi, edi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1001d53f
mov eax, dword [0x1002cd98]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax + 0x1e8]
sub ecx, dword [edx + 0x1fd0]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x1e8]
push edx
mov edx, dword [esp + 0x34]
add eax, 0x1fc8
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.1000b6e0
add esp, 0x10
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x10]
push eax
push ebp
push 0x40a
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call esi
mov edx, dword [ebx + 8]
push edi
push ebp
push 0x414
push edx
call esi
mov edi, eax
test edi, edi
je 0x1001d602
lea eax, [esp + 0x88]
push eax
push edi
call dword [sym.imp.USER32.dll_GetIconInfo]
mov edx, dword [esp + 0x98]
lea ecx, [esp + 0x9c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
push 3
push 0
push 0
push ecx
push eax
mov eax, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x28]
add eax, ecx
mov ecx, dword [esp + 0x24]
cdq
sub eax, edx
mov edx, dword [esp + 0x44]
sar eax, 1
push edi
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [esp + 0x98]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov ecx, dword [esp + 0x94]
push ecx
call edi
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
push 0
push ebp
push 0x403
push eax
call esi
mov ecx, eax
and ecx, 0xffff
jle 0x1001d6ae
lea edi, [ecx + 1]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [ebx + 8]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x1002cd98]
add eax, 3
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0x1dc]
mov ecx, dword [esp + 0x30]
mov eax, dword [edx + 0xb8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x30]
push 0x24
not ecx
dec ecx
push edx
push ecx
push esi
push eax
call dword [sym.imp.USER32.dll_DrawTextA]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 4
jmp 0x1001d787
shr eax, 0x10
test ah, 0x10
je 0x1001d787
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x58]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x34]
push ebp
mov edi, 0x1a
push 0x402
push eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], eax
call esi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], edi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [ebx + 8]
mov edi, eax
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
mov eax, dword [0x1002cd98]
mov edx, dword [eax + 0x1dc]
je 0x1001d74f
mov ecx, dword [edx + 0xb8]
jmp 0x1001d755
mov ecx, dword [edx + 0xbc]
mov dword [eax + 0x388], ecx
mov edx, dword [0x1002cd98]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x58]
push ecx
push 0
push 0x2b
push edi
mov dword [edx + 0x384], eax
call esi
mov edx, dword [0x1002cd98]
mov dword [edx + 0x384], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
cmp ebp, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jl 0x1001d4f3
xor edi, edi
mov ecx, dword [esp + 0x30]
push edi
push ecx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov edx, dword [ebx + 8]
push 0xfffffffffffffff0
push edx
call fcn.10009a50
test ah, 1
je 0x1001d81d
mov eax, dword [0x1002cd98]
mov edx, dword [eax + 0x1e8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [esp + 0x54]
mov ebx, dword [edx + 0x29f4]
lea ecx, [edx + 0x29e8]
push ecx
lea ecx, [eax - 2]
push ecx
mov ecx, dword [esp + 0x58]
sub eax, ebx
mov ebx, dword [edx + 0x29f0]
mov edx, dword [esp + 0x3c]
lea esi, [ecx - 2]
sub ecx, ebx
sub eax, 2
push esi
sub ecx, 2
push eax
push ecx
push edx
call fcn.1000b6a0
add esp, 0x1c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push 0xcc0020
push edi
push edi
push eax
mov eax, dword [esp + 0xd4]
push ecx
push edx
push edi
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x30]
mov dword [esp + 0xbc], 0xffffffff
call fcn.1000fc70
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret 4