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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x621b20
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [0x6c6ad8]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x533d33
test byte [0x6c69e4], 0x20
je 0x533d33
mov al, byte [esp + 0x9c]
test al, al
je 0x533c64
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
jmp 0x533c72
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x90]
xor ebx, ebx
mov word [esp + 0x6a], di
mov word [esp + 0x7a], di
mov edx, dword [esi]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 4]
mov dword [esp + 0x60], edx
xor edx, edx
mov dh, cl
mov dword [esp + 0x40], 1
mov word [esp + 0x64], dx
xor edx, edx
mov dl, ch
mov bh, dl
xor edx, edx
shr ecx, 0x10
mov dh, cl
mov ecx, dword [esi + 8]
mov word [esp + 0x68], dx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x6c], ecx
xor ecx, ecx
mov dword [esp + 0x70], edx
mov ch, al
xor edx, edx
mov word [esp + 0x74], cx
mov dl, ah
xor ecx, ecx
mov ch, dl
xor edx, edx
shr eax, 0x10
mov dh, al
mov eax, dword [esp + 0x8c]
cmp eax, edi
mov word [esp + 0x66], bx
mov word [esp + 0x76], cx
mov word [esp + 0x78], dx
jne 0x533cfd
xor eax, eax
jmp 0x533d00
mov eax, dword [eax + 4]
mov bl, byte [esp + 0x9c]
xor ecx, ecx
test bl, bl
setne cl
push ecx
lea edx, [esp + 0x40]
push 1
push edx
lea ecx, [esp + 0x68]
push 2
push ecx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret
mov edi, dword [esp + 0x90]
mov esi, dword [edi]
mov ecx, dword [edi + 8]
cmp esi, ecx
jge 0x5340ad
mov edx, dword [edi + 4]
mov eax, dword [edi + 0xc]
cmp edx, eax
jge 0x5340ad
sub eax, edx
sub ecx, esi
mov esi, dword [esp + 0xa0]
mov ebx, eax
mov al, byte [esp + 0x9c]
mov ebp, ecx
test al, al
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
je 0x533d7f
cmp esi, ebx
jbe 0x533d85
mov esi, ebx
jmp 0x533d85
cmp esi, ebp
jbe 0x533d85
mov esi, ebp
mov edx, dword [esp + 0x8c]
push 0xc
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 8
mov dword [esp + 0x1c], eax
jg 0x533dc4
mov cl, byte [esp + 0x9c]
mov eax, ebx
test cl, cl
jne 0x533db0
mov eax, ebp
xor edx, edx
div esi
cmp eax, 4
jae 0x533dc4
test cl, cl
mov esi, ebx
jne 0x533dc1
mov esi, ebp
shr esi, 2
mov ecx, dword [edi]
mov dword [esp + 0x4c], ecx
mov edx, dword [edi + 4]
mov dword [esp + 0x50], edx
mov eax, dword [edi + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [edi + 0xc]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0xa0], edi
jbe 0x5340ad
mov eax, dword [esp + 0x94]
xor edx, edx
mov ebx, eax
mov dl, ah
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], eax
mov edi, eax
mov eax, dword [esp + 0x98]
mov ebp, edx
mov ecx, eax
and ebx, 0xff
and ecx, 0xff
and ebp, 0xff
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov cl, ah
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebp
imul ebx, esi
shr eax, 0x10
imul ebp, esi
imul edi, esi
and ecx, 0xff
and eax, 0xff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0x10]
xor ecx, ecx
push esi
lea eax, [edi + edx]
xor edx, edx
div esi
mov edx, dword [esp + 0x18]
mov ch, al
lea eax, [edx + ebp]
xor edx, edx
div esi
xor edx, edx
mov cl, al
mov eax, dword [esp + 0x1c]
add eax, ebx
div esi
shl ecx, 8
and eax, 0xff
or ecx, eax
mov al, byte [esp + 0xa0]
test al, al
mov dword [esp + 0x98], ecx
je 0x533f8b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov eax, dword [esp + 0x90]
mov edx, dword [eax + 0xc]
sub edx, ecx
lea ecx, [esi - 1]
dec edx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0xa0]
cmp edx, ecx
jne 0x533ef4
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x58]
cmp eax, ecx
mov dword [esp + 0x50], eax
jg 0x5340ad
cmp dword [esp + 0x1c], 8
jg 0x533f65
mov edx, dword [esp + 0x94]
lea ecx, [esp + 0x3c]
push edx
call fcn.005e13ff
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x8c]
push eax
lea eax, [esp + 0x50]
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x3c], vtable.CGdiObject.0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x84], 0
call fcn.005e1399
mov edx, dword [esp + 0x50]
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x58], edx
jmp 0x534057
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, dword [esp + 0x94]
call fcn.005ee0f0
mov edx, dword [esp + 0x50]
mov dword [esp + 0x58], edx
jmp 0x534057
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx]
lea eax, [eax + edx + 1]
lea edx, [esi - 1]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa0]
cmp eax, edx
jne 0x533fd0
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
mov dword [esp + 0x54], eax
jl 0x5340ad
cmp dword [esp + 0x1c], 8
jg 0x534036
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x44]
push eax
call fcn.005e13ff
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x44]
neg eax
sbb eax, eax
lea ecx, [esp + 0x4c]
and eax, edx
mov edx, dword [esp + 0x8c]
push eax
push ecx
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x44], vtable.CGdiObject.0
lea ecx, [esp + 0x44]
mov dword [esp + 0x84], 1
call fcn.005e1399
mov dword [esp + 0x84], 0xffffffff
jmp 0x53404f
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x90]
push edx
call fcn.005ee0f0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x10]
add edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
add ecx, edx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
inc eax
add edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x30]
sub edi, edx
mov edx, dword [esp + 0x38]
sub ebp, ecx
sub ebx, edx
cmp eax, esi
mov dword [esp + 0xa0], eax
jb 0x533e66
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret