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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442928
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4531a0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x4531a0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
mov edi, ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.GDI32.dll_SaveDC]
push 1
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xb0]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, edi
mov dword [esp + 0x2c], eax
call fcn.00421740
mov eax, dword [edi + 0xb4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
xor esi, esi
push 0xffffffffffffffff
mov dword [esp + 0x38], eax
mov word [esp + 0x6c], cx
lea eax, [edi + 0x70]
push esi
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], esi
call fcn.00405100
mov dword [esp + 0x90], esi
cmp dword [esp + 0x7c], 8
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x18], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jae 0x421402
lea eax, [esp + 0x68]
mov edx, dword [esp + 0x78]
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
cmp byte [edi + 0xc0], 0
mov ecx, dword [esp + 0x20]
mov edx, eax
je 0x421452
mov eax, dword [edi + 0xc4]
cmp eax, esi
jle 0x421446
mov esi, ecx
sub esi, dword [esp + 0x18]
cmp esi, eax
jle 0x421446
mov esi, dword [edi + 4]
add esi, eax
mov dword [edi + 0xc], esi
jmp 0x421452
mov eax, dword [edi + 4]
sub eax, dword [esp + 0x18]
add eax, ecx
mov dword [edi + 0xc], eax
cmp ecx, dword [edi + 0xc]
jle 0x421561
xor ecx, ecx
cmp dword [edi + 0x84], ecx
mov dword [esp + 0x10], ecx
jle 0x421561
jmp 0x421474
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x42148d
push 3
mov eax, 0x4498d8
lea esi, [esp + 0x68]
call fcn.004051f0
jmp 0x421518
lea eax, [edi + 0x70]
push eax
xor edx, edx
lea esi, [esp + 0x4c]
call fcn.0040e1f0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 1
call fcn.00405100
mov byte [esp + 0x90], 0
cmp dword [esp + 0x60], 8
jb 0x4214cd
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00428b9c
add esp, 4
lea edx, [esp + 0x64]
push edx
mov ebx, 0x4498d8
lea esi, [esp + 0x4c]
call fcn.00413280
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 2
call fcn.00405100
mov byte [esp + 0x90], 0
cmp dword [esp + 0x60], 8
jb 0x421514
mov eax, dword [esp + 0x4c]
push eax
call fcn.00428b9c
add esp, 4
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x421527
lea eax, [esp + 0x68]
mov edx, dword [esp + 0x78]
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, eax
mov eax, dword [esp + 0x20]
add eax, 0x10
cmp eax, dword [edi + 0xc]
jg 0x421561
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [edi + 0x84]
mov dword [esp + 0x10], eax
jl 0x421470
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 8]
sub eax, ecx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
mov dword [esp + 0x40], ecx
push 0
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x68]
mov esi, 8
cmp dword [esp + 0x7c], esi
jae 0x4215a9
lea eax, [esp + 0x68]
mov edx, dword [edi + 0xbc]
push edx
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x34]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x28]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x30]
push eax
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp dword [esp + 0x7c], esi
jb 0x421605
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00428b9c
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00428ba7
mov esp, ebp
pop ebp
ret 4