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

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x94
test al, al
push ebx
push ebp
push esi
push edi
mov edi, ecx
jne 0x408163
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x94
ret 0x14
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x4085ed
mov eax, dword [edi + 0x10]
test eax, eax
je 0x408180
mov al, byte [edi + 0x2e]
test al, al
jne 0x40819d
add edi, 0x30
push edi
call dword [sym.imp.USER32.dll_IsRectEmpty]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x94
ret 0x14
mov al, byte [edi + 0x2d]
test al, al
jne 0x4085ed
mov ebp, dword [esp + 0xb4]
mov ebx, dword [esp + 0xac]
mov edx, dword [edi]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x84], eax
add eax, ebx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x88], ecx
add ecx, eax
lea eax, [esp + 0x94]
mov dword [esp + 0x90], ecx
push eax
mov ecx, edi
call dword [edx + 0x50]
lea ecx, [esp + 0x94]
call fcn.005f8315
mov esi, dword [sym.imp.USER32.dll_IntersectRect]
lea ecx, [esp + 0x94]
lea edx, [esp + 0x84]
push ecx
lea eax, [esp + 0x88]
push edx
push eax
call esi
lea ecx, [edi + 0x30]
mov edx, dword [edi + 0x30]
mov dword [esp + 0x64], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x68], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x6c], edx
lea edx, [esp + 0x84]
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], eax
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call esi
test eax, eax
jne 0x408264
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x94
ret 0x14
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x64]
neg edx
mov dword [esp + 0x80], ecx
push edx
neg eax
lea ecx, [esp + 0x78]
push eax
push ecx
call esi
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x38]
neg ecx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x3c]
neg eax
push ecx
push eax
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x5c]
mov dword [esp + 0x68], edx
push eax
call esi
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov ebp, dword [esp + 0x74]
sub ecx, edx
sub eax, esi
mov dword [esp + 0x38], esi
mov esi, eax
lea eax, [ecx + ebx]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea ecx, [eax*4]
mov eax, ebp
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x7c]
sub eax, ecx
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x28]
mov dword [esp + 0x10], esi
lea eax, [eax + eax*2]
add eax, edx
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_GdiFlush]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea eax, [edx + esi - 1]
mov edx, dword [esp + 0x70]
imul eax, ebx
add eax, ecx
mov ecx, dword [esp + 0xa8]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x80]
sub edx, eax
mov eax, dword [esp + 0x68]
sub edx, eax
mov ecx, dword [edi + 0x10]
imul edx, dword [edi + 0x28]
lea eax, [ebp + ebp*2]
mov ebp, ecx
add ebp, edx
mov edx, dword [esp + 0xa8]
add eax, ebp
cmp esi, edx
jb 0x4085ed
imul ebx, dword [esp + 0xb0]
lea edx, [edx + ebx*4]
cmp esi, edx
ja 0x4085ed
cmp eax, ecx
jb 0x4085ed
cmp eax, dword [edi + 0x14]
ja 0x4085ed
mov cl, byte [esp + 0xb8]
cmp cl, 0xff
mov ecx, dword [esp + 0x10]
jne 0x4084ca
test ecx, ecx
jle 0x4085de
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x44]
test ecx, ecx
jle 0x4084a0
mov dword [esp + 0x1c], ecx
mov dl, byte [esi]
mov bl, byte [esi + 1]
inc esi
mov byte [esp + 0x24], dl
inc esi
mov byte [esp + 0x2c], bl
mov cl, byte [esi]
inc esi
mov byte [esp + 0x20], cl
mov cl, byte [esi]
inc esi
cmp cl, 0xff
mov byte [esp + 0x18], cl
jne 0x408409
mov cl, byte [esp + 0x20]
mov byte [eax], cl
inc eax
mov byte [eax], bl
inc eax
mov byte [eax], dl
inc eax
jmp 0x408491
mov cl, byte [eax]
mov dl, byte [eax + 1]
inc eax
mov ebx, dword [esp + 0x24]
inc eax
mov edi, dword [esp + 0x18]
mov byte [esp + 0x14], dl
and ebx, 0xff
mov dl, byte [eax]
and edi, 0xff
mov byte [esp + 0x28], dl
mov byte [esp + 0x30], cl
mov ebp, dword [esp + 0x28]
and ebp, 0xff
sub ebx, ebp
imul ebx, edi
sar ebx, 8
add bl, dl
mov edx, dword [esp + 0x14]
mov byte [eax], bl
mov ebx, dword [esp + 0x2c]
and edx, 0xff
and ebx, 0xff
sub ebx, edx
mov dl, byte [esp + 0x14]
imul ebx, edi
sar ebx, 8
dec eax
add bl, dl
mov edx, dword [esp + 0x30]
mov byte [eax], bl
mov ebx, dword [esp + 0x20]
and edx, 0xff
and ebx, 0xff
sub ebx, edx
dec eax
imul ebx, edi
sar ebx, 8
add bl, cl
mov byte [eax], bl
add eax, 3
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x4083d5
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
sub esi, edi
add eax, edx
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4083c5
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x94
ret 0x14
test ecx, ecx
jle 0x4085de
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x44]
test edx, edx
jle 0x4085c3
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x10], edx
and ecx, 0xff
mov dword [esp + 0x48], ecx
jmp 0x4084fd
mov ecx, dword [esp + 0x48]
mov dl, byte [esi]
inc esi
mov byte [esp + 0x24], dl
mov dl, byte [esi]
inc esi
mov byte [esp + 0x2c], dl
mov ebx, dword [esp + 0x24]
mov dl, byte [esi]
inc esi
mov byte [esp + 0x20], dl
and ebx, 0xff
mov dl, byte [esi]
inc esi
mov byte [esp + 0x18], dl
mov edx, dword [esp + 0x18]
and edx, 0xff
imul edx, ecx
mov cl, byte [eax]
sar edx, 8
inc eax
mov byte [esp + 0x18], dl
mov edi, dword [esp + 0x18]
mov byte [esp + 0x30], cl
mov dl, byte [eax]
inc eax
mov byte [esp + 0x14], dl
and edi, 0xff
mov dl, byte [eax]
mov byte [esp + 0x28], dl
mov ebp, dword [esp + 0x28]
and ebp, 0xff
sub ebx, ebp
imul ebx, edi
sar ebx, 8
add bl, dl
mov edx, dword [esp + 0x14]
mov byte [eax], bl
mov ebx, dword [esp + 0x2c]
and edx, 0xff
and ebx, 0xff
sub ebx, edx
mov dl, byte [esp + 0x14]
imul ebx, edi
sar ebx, 8
dec eax
add bl, dl
mov edx, dword [esp + 0x30]
mov byte [eax], bl
mov ebx, dword [esp + 0x20]
and edx, 0xff
and ebx, 0xff
sub ebx, edx
dec eax
imul ebx, edi
sar ebx, 8
add bl, cl
mov ecx, dword [esp + 0x10]
mov byte [eax], bl
add eax, 3
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4084f9
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
sub esi, edi
add eax, edx
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x4084d6
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x94
ret 0x14
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x94
ret 0x14