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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x60]
mov esi, dword [edi + 4]
cmp dword [esi + 0x1c], 2
setne al
dec eax
and eax, 3
mov ebp, eax
mov eax, dword [esp + 0x7c]
lea ecx, [ebp + ebp]
sub eax, ecx
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x18], eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
je 0x5350ba
mov eax, dword [esp + 0x64]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
call fcn.00531b10
mov ebx, eax
add esp, 0xc
push ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], 3
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
jmp 0x5350d0
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
add ebp, ecx
mov eax, dword [edi + 0x14]
test eax, eax
mov dword [esp + 0x60], ebp
jne 0x5350fc
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x5350fc
mov ebx, dword [edi + 0x90]
test ebx, ebx
jne 0x53518a
mov ebx, dword [esi + 0x58]
jmp 0x53518a
mov edx, dword [esi + 0xa0]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x535161
mov eax, dword [ebx + 0x70]
mov ecx, dword [0x5debe0]
push eax
call dword [ecx + 0x558]
mov edx, dword [esi]
mov ebp, dword [edx + 0x2c]
add esp, 4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x535146
test cl, cl
je 0x535142
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x535146
add eax, 2
add ebp, 2
test cl, cl
jne 0x535121
xor eax, eax
jmp 0x53514b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x53515b
mov ebx, dword [ebx + 0xa8]
test ebx, ebx
jne 0x535109
jmp 0x535161
cmp dword [edi + 0x14], 2
je 0x535167
cmp dword [edi + 0x14], 2
jne 0x53517d
mov eax, dword [esi + 0x40]
test eax, eax
je 0x53517d
mov ebx, dword [edi + 0x94]
test ebx, ebx
jne 0x53518a
mov ebx, dword [esi + 0x54]
jmp 0x53518a
mov ebx, dword [edi + 0x8c]
test ebx, ebx
jne 0x53518a
mov ebx, dword [esi + 0x50]
mov eax, dword [edi + 0x98]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x53519f
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x5351a9
mov eax, dword [esi + 0x24]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00531670
mov ecx, dword [esp + 0x88]
add esp, 8
test ecx, ecx
mov dword [esp + 0x34], eax
jne 0x5351da
mov eax, dword [edi + 0x48]
test eax, eax
jne 0x5351ce
mov eax, dword [esi + 0x2c]
mov edx, dword [esi]
push eax
push edx
call fcn.00531670
add esp, 8
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x54]
test eax, eax
jne 0x5351f6
mov eax, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x80], eax
jmp 0x53521a
mov ecx, dword [esi]
push eax
push ecx
call fcn.0050eb30
lea edx, [esp + 0x48]
mov ebp, eax
push edx
push ebp
call fcn.0050ed90
lea eax, [esp + 0x50]
add esp, 0x10
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x14]
push edx
sub eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push edi
push esi
call fcn.00535fb0
mov eax, dword [edi]
add esp, 0x24
cmp eax, 4
jne 0x535284
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ebp
push ebx
push ecx
push edi
push esi
call fcn.005358c0
add esp, 0x28
jmp 0x53539c
cmp eax, 5
jne 0x5352bb
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ebp
push ebx
push ecx
push edi
push esi
call fcn.00535f00
add esp, 0x28
jmp 0x53539c
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
not edx
shr edx, 1
and edx, 1
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push ebp
push ebx
push edx
push edi
push esi
call fcn.00535930
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push ebp
push ebx
push eax
push edi
push esi
call fcn.005356c0
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0xd0]
add esp, 0x58
and eax, 1
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push ebx
push eax
push edi
push esi
call fcn.005357c0
mov eax, dword [edi + 0x5c]
add esp, 0x28
test eax, eax
jne 0x53539c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ebp
push eax
push ebx
push ecx
push edi
push esi
call fcn.00535410
add esp, 0x2c
mov eax, dword [edi + 0x28]
test eax, eax
je 0x535400
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x28]
push 0xcc0020
push 0
push 0
push esi
push edx
mov edx, dword [esp + 0x84]
push eax
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x2c]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x38]
push ecx
push edi
push edx
call fcn.00531ba0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret