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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4503a0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4621a0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x4621a0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp byte [edi + 0xa0], 0
mov dword [esp + 0x20], ebx
je 0x4208fc
push ebx
call dword [sym.imp.GDI32.dll_SaveDC]
cmp byte [edi + 0xf0], 0
mov dword [esp + 0x74], eax
je 0x4203bc
mov eax, dword [edi + 0xec]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 2
jmp 0x4203be
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp byte [edi + 0xa1], 0
mov dword [esp + 0x44], eax
je 0x4203db
mov ecx, dword [edi + 0xe8]
push ecx
jmp 0x4203e2
mov edx, dword [edi + 0x134]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov esi, edi
mov dword [esp + 0x3c], eax
call fcn.00420a70
mov eax, dword [edi + 0xf4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
xor esi, esi
push 0xffffffffffffffff
mov dword [esp + 0x7c], eax
mov word [esp + 0x84], cx
lea eax, [edi + 0xa8]
push esi
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], esi
call fcn.00405280
mov dword [esp + 0xa8], esi
cmp dword [esp + 0x94], 8
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x48], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jae 0x420474
lea eax, [esp + 0x80]
mov edx, dword [esp + 0x90]
push 0x400
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
cmp byte [edi + 0x114], 0
mov esi, eax
mov dword [esp + 0x40], esi
je 0x4206e8
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 8]
mov ecx, dword [edi + 0x118]
add eax, ecx
cdq
add ecx, esi
idiv ecx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x38], edx
mov ecx, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x30], eax
add eax, esi
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
jle 0x4208b2
jmp 0x4204f4
mov eax, dword [esp + 0x18]
lea ecx, [eax + 1]
cmp ecx, dword [edi + 0xbc]
mov byte [esp + 0x17], 1
mov dword [esp + 0x28], ecx
jge 0x42067d
sub ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x420524
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
lea eax, [edi + 0xa8]
push eax
lea esi, [esp + 0x5c]
call fcn.0040ec30
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 1
call fcn.00405280
mov esi, 8
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], esi
jb 0x420570
mov eax, dword [esp + 0x5c]
push eax
call fcn.00434270
add esp, 4
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x420587
lea eax, [esp + 0x80]
mov edx, dword [esp + 0x90]
push 0x400
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x50]
add eax, 0x10
cmp eax, dword [edi + 0xc]
jg 0x4205cb
mov eax, dword [esp + 0x28]
inc dword [esp + 0x24]
inc eax
cmp eax, dword [edi + 0xbc]
mov dword [esp + 0x28], eax
jl 0x420520
jmp 0x42067d
cmp dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x17], 0
jne 0x42067d
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x7c]
push edx
dec ecx
xor edx, edx
lea esi, [esp + 0x5c]
call fcn.0040ec30
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 2
call fcn.00405280
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x42062f
mov eax, dword [esp + 0x5c]
push eax
call fcn.00434270
add esp, 4
lea ecx, [esp + 0x7c]
push ecx
mov ebx, 0x457e30
lea esi, [esp + 0x5c]
call fcn.00413980
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 3
call fcn.00405280
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x420679
mov edx, dword [esp + 0x5c]
push edx
call fcn.00434270
add esp, 4
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x420695
lea eax, [esp + 0x80]
mov ecx, dword [edi + 0xfc]
push ecx
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x30]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [edi + 0x118]
add edx, dword [esp + 0x40]
lea eax, [esp + 0x2c]
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
dec dword [esp + 0x1c]
cmp byte [esp + 0x17], 0
jne 0x4208b2
cmp dword [esp + 0x1c], 0
jg 0x4204f0
jmp 0x4208b2
cmp byte [edi + 0x100], 0
mov edx, dword [esp + 0x50]
je 0x42071f
mov eax, dword [edi + 0x104]
mov ecx, dword [esp + 0x48]
test eax, eax
jle 0x420715
mov esi, edx
sub esi, ecx
cmp esi, eax
jle 0x420715
mov ecx, dword [edi + 4]
add ecx, eax
mov dword [edi + 0xc], ecx
jmp 0x42071f
mov eax, dword [edi + 4]
sub eax, ecx
add eax, edx
mov dword [edi + 0xc], eax
cmp edx, dword [edi + 0xc]
jle 0x420847
xor ecx, ecx
cmp dword [edi + 0xbc], ecx
mov dword [esp + 0x18], ecx
jle 0x420847
jmp 0x420744
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x420760
push 3
mov eax, 0x457e30
lea esi, [esp + 0x80]
call fcn.004055b0
jmp 0x4207f4
lea eax, [edi + 0xa8]
push eax
xor edx, edx
lea esi, [esp + 0x5c]
call fcn.0040ec30
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 4
call fcn.00405280
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x4207a6
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00434270
add esp, 4
lea edx, [esp + 0x7c]
push edx
mov ebx, 0x457e30
lea esi, [esp + 0x5c]
call fcn.00413980
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0xb0], 5
call fcn.00405280
mov byte [esp + 0xa8], 0
cmp dword [esp + 0x70], 8
jb 0x4207f0
mov eax, dword [esp + 0x5c]
push eax
call fcn.00434270
add esp, 4
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x42080c
lea eax, [esp + 0x80]
mov edx, dword [esp + 0x90]
push 0x400
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x50]
add eax, 0x10
cmp eax, dword [edi + 0xc]
jg 0x420847
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [edi + 0xbc]
mov dword [esp + 0x18], eax
jl 0x420740
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 8]
sub eax, ecx
sub eax, dword [esp + 0x40]
mov dword [esp + 0x34], edx
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_InflateRect]
cmp dword [esp + 0x94], 8
mov eax, dword [esp + 0x80]
jae 0x420896
lea eax, [esp + 0x80]
mov ecx, dword [edi + 0xfc]
push ecx
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x30]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x78]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x44]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esp + 0x74]
push edx
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp dword [esp + 0x94], 8
jb 0x4208fc
mov eax, dword [esp + 0x80]
push eax
call fcn.00434270
add esp, 4
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0043427b
mov esp, ebp
pop ebp
ret 4