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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
call fcn.00404450
mov esi, dword [esp + 0x94]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov ebx, eax
mov eax, dword [0x41a614]
push 0x1004
push eax
mov dword [ebx + 0x10], esi
call edi
mov ebp, eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x14], ebp
jle 0x4020f3
mov edx, dword [0x41a614]
lea ecx, [esp + 0x28]
push ecx
push eax
push 0x100e
push edx
mov dword [esp + 0x38], eax
call edi
push 0x3c
mov dword [esp + 0x14], eax
lea eax, [esp + 0x54]
push 0
push eax
call fcn.004094e0
mov eax, dword [esp + 0x9c]
add esp, 0xc
cmp byte [eax + 1], 0x3a
mov dword [esp + 0x50], 3
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], ebp
mov dword [esp + 0x6c], esi
push 0x4157d4
jne 0x40214d
add eax, 2
push eax
call fcn.0040941c
mov esi, eax
add esp, 8
test esi, esi
je 0x4022af
sub esi, 2
jmp 0x402158
push eax
call fcn.0040941c
add esp, 8
mov esi, eax
test esi, esi
je 0x4022af
movsx ecx, byte [esi]
push ecx
call fcn.004091d5
add esp, 4
test eax, eax
je 0x402182
movsx edx, byte [esi + 1]
inc esi
push edx
call fcn.004091d5
add esp, 4
test eax, eax
jne 0x402170
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x4021e8
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402190
sub eax, edx
lea edi, [eax + 1]
cmp edi, 0x1ff
jbe 0x4021a9
mov edi, 0x1ff
push edi
lea ebp, [ebx + 0x14]
push esi
push ebp
call fcn.00408ba0
mov ecx, dword [0x41a614]
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push 0
push 0x1007
mov byte [ebx + 0x213], 0
push ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x54], eax
jmp 0x402283
cmp eax, 1
mov eax, esi
lea edx, [eax + 1]
jne 0x402234
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4021f2
sub eax, edx
lea edi, [eax + 1]
cmp edi, 0x21
jbe 0x402208
mov edi, 0x21
push edi
lea ebp, [ebx + 0x294]
push esi
push ebp
call fcn.00408ba0
mov eax, dword [0x41a614]
add esp, 0xc
lea edx, [esp + 0x50]
push edx
push 0
push 0x1006
mov byte [ebx + 0x2b5], 0
push eax
jmp 0x402275
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402234
sub eax, edx
lea edi, [eax + 1]
cmp edi, 0x7f
jbe 0x40224a
mov edi, 0x7f
push edi
lea ebp, [ebx + 0x214]
push esi
push ebp
call fcn.00408ba0
mov edx, dword [0x41a614]
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
push 0
push 0x1006
mov byte [ebx + 0x293], 0
push edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
add dword [esp + 0x58], eax
push 0x4157d4
push 0
mov dword [esp + 0x58], eax
call fcn.0040941c
mov esi, eax
add esp, 8
test esi, esi
jne 0x402160
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 0x10], 0
je 0x40235d
mov eax, dword [0x41a614]
push 0
push 0
push 0x1027
push eax
call edi
mov edx, dword [0x41a614]
lea ecx, [esp + 0x18]
push ecx
push edx
mov ebp, eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
mov esi, 0xa
jmp 0x4022f0
sub eax, dword [esp + 0x1c]
mov ecx, dword [0x41a614]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x1012
push ecx
mov dword [esp + 0x48], esi
call edi
mov ecx, dword [esp + 0x40]
and ecx, 0x10
mov eax, dword [esp + 0x24]
je 0x402323
dec eax
mov dword [esp + 0x24], eax
test ecx, ecx
jne 0x4022f0
mov esi, dword [esp + 0x34]
sub esi, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x24], eax
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cdq
idiv esi
dec eax
sub ecx, eax
cmp ecx, ebp
jl 0x40235d
mov edx, dword [0x41a614]
sub ecx, ebp
inc ecx
imul ecx, esi
push ecx
push 0
push 0x1014
push edx
call edi
mov eax, dword [0x423c94]
push ebx
mov dword [eax], ebx
mov edx, dword [0x41a620]
lea ecx, [ebx + 0x14]
push ecx
push edx
mov dword [0x423c94], ebx
call fcn.00408160
mov ecx, dword [0x41a628]
push ebx
lea eax, [ebx + 0x294]
push eax
push ecx
call fcn.00408160
mov edx, dword [0x41a624]
push ebx
add ebx, 0x214
push ebx
push edx
call fcn.00408160
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7c
ret 8