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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebx + 0x3c]
push eax
lea eax, [ebx + 0x44]
push eax
lea ecx, [ebx + 0xc]
lea edx, [ebx + 0x34]
mov eax, dword [ebx + 0x38]
call fcn.007fbfb4
mov eax, ebx
call fcn.00813b68
test al, al
je 0x812e1e
lea eax, [ebp - 0x48]
call fcn.0082ad8c
lea edx, [ebp - 0x48]
lea eax, [ebx + 0xc]
call fcn.00412fd8
test al, al
jne 0x812d0d
xor eax, eax
mov dword [ebx + 0x78], eax
xor eax, eax
mov dword [ebx + 0x7c], eax
jmp 0x812d6a
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x40]
sar edx, 1
jns 0x812d1a
adc edx, 0
sub eax, edx
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call fcn.004134b4
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
call fcn.0082ad8c
lea edx, [ebp - 0x48]
pop eax
call fcn.00412fd8
test al, al
je 0x812d5a
movzx eax, byte [ebx + 0x81]
inc eax
mov dword [ebx + 0x78], eax
xor eax, eax
mov dword [ebx + 0x7c], eax
jmp 0x812d6a
xor eax, eax
mov dword [ebx + 0x78], eax
movzx eax, byte [ebx + 0x81]
inc eax
mov dword [ebx + 0x7c], eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_BeginPaint
mov eax, dword [ebx + 0x68]
xor edx, edx
call fcn.0083a200
test al, al
jne 0x812e0c
mov eax, dword [edi + 4]
test eax, eax
jne 0x812d9d
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_GetDC
mov esi, eax
jmp 0x812d9f
mov esi, eax
mov eax, dword [ebx + 0x68]
mov byte [eax + 0x90], 1
mov eax, ebx
call fcn.00813198
push 0xcc0020
push 0
mov eax, dword [ebx + 0x84]
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
call fcn.005209e0
call fcn.0051a144
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x30]
sub eax, dword [ebx + 0x84]
push eax
push 0
mov eax, dword [ebx + 0x84]
push eax
push esi
call sub.gdi32.dll_BitBlt
cmp dword [edi + 4], 0
je 0x812e0c
push esi
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_ReleaseDC
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_EndPaint
jmp 0x812f76
lea eax, [ebp - 0x48]
call fcn.0082ad8c
lea edx, [ebp - 0x48]
lea eax, [ebx + 0xc]
call fcn.00412fd8
test al, al
jne 0x812e44
xor eax, eax
mov dword [ebx + 0x78], eax
xor eax, eax
mov dword [ebx + 0x7c], eax
jmp 0x812edb
mov eax, dword [ebx + 0x18]
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x3c]
sar eax, 1
jns 0x812e59
adc eax, 0
sub ecx, eax
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
call fcn.004134b4
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
call fcn.0082ad8c
lea edx, [ebp - 0x48]
pop eax
call fcn.00412fd8
test al, al
je 0x812eae
movzx eax, byte [ebx + 0x80]
xor al, 1
and eax, 0x7f
movzx edx, byte [ebx + 0x81]
inc edx
imul edx
mov dword [ebx + 0x78], eax
movzx eax, byte [ebx + 0x81]
inc eax
movzx edx, byte [ebx + 0x80]
imul edx
mov dword [ebx + 0x7c], eax
jmp 0x812edb
movzx eax, byte [ebx + 0x81]
inc eax
movzx edx, byte [ebx + 0x80]
imul edx
mov dword [ebx + 0x78], eax
movzx eax, byte [ebx + 0x80]
xor al, 1
and eax, 0x7f
movzx edx, byte [ebx + 0x81]
inc edx
imul edx
mov dword [ebx + 0x7c], eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_BeginPaint
mov eax, dword [ebx + 0x68]
xor edx, edx
call fcn.0083a200
test al, al
jne 0x812f69
mov eax, dword [edi + 4]
test eax, eax
jne 0x812f0a
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_GetDC
mov esi, eax
jmp 0x812f0c
mov esi, eax
mov eax, dword [ebx + 0x68]
mov byte [eax + 0x90], 1
mov eax, ebx
call fcn.00813198
push 0xcc0020
push 0
push 0
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
call fcn.005209e0
call fcn.0051a144
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebx + 0x68]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
push 0
push 0
push esi
call sub.gdi32.dll_BitBlt
cmp dword [edi + 4], 0
je 0x812f69
push esi
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_ReleaseDC
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_EndPaint
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret