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

Disassembly:
sub esp, 0x40
mov dword [0x4d6730], 0x4d0ff4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov eax, dword [esi + 8]
push 0x58
push eax
call edi
cmp eax, 0xb4
jge 0x43cb99
mov ecx, dword [esi + 8]
push 0x5a
push ecx
call edi
cmp eax, 0xb4
jl 0x43cba3
mov dword [0x4d6730], 0x4d10f4
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x60]
movsx esi, word [eax]
movsx ebp, word [eax + 2]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], esi
cmp eax, 3
mov dword [esp + 0x4c], ebp
jne 0x43cbd2
lea ecx, [ebx + 3]
shr ecx, 2
shl ecx, 2
mov dword [esp + 0x54], ecx
jmp 0x43cbe1
lea eax, [ebx + 0x1f]
shr eax, 5
shl eax, 2
mov dword [esp + 0x54], eax
mov ecx, eax
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
sub edi, edx
cmp edi, eax
jae 0x43cbf9
mov dword [esp + 0x6c], edi
mov eax, edi
mov edi, dword [esp + 0x5c]
imul ecx, eax
mov word [edi], bx
mov ebx, dword [esp + 0x58]
add ebx, 4
mov word [edi + 2], ax
mov dword [esp + 0x58], ebx
mov ebx, ecx
add edi, 4
xor eax, eax
shr ecx, 2
mov dword [esp + 0x5c], edi
rep stosd dword es:[edi], eax
mov ecx, ebx
xor ebx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x60]
neg edx
mov ecx, edx
mov eax, edi
xor edx, edx
div esi
xor edx, edx
mov dword [esp + 0x40], eax
mov eax, edi
div esi
mov edi, dword [esp + 0x64]
mov eax, edi
mov dword [esp + 0x44], edx
xor edx, edx
div ebp
xor edx, edx
mov dword [esp + 0x38], eax
mov eax, edi
div ebp
mov dword [esp + 0x3c], edx
xor edx, edx
test ebp, ebp
mov dword [esp + 0x68], edx
jle 0x43ce72
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], ebp
mov edi, dword [esp + 0x38]
add ecx, edi
mov edi, dword [esp + 0x3c]
add ebx, edi
mov dword [esp + 0x60], ecx
cmp ebx, ebp
mov dword [esp + 0x30], ebx
jl 0x43cc98
inc ecx
sub ebx, ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x30], ebx
cmp edx, eax
jge 0x43ce59
cmp edx, ecx
jge 0x43ce59
cmp ecx, eax
jle 0x43ccb2
mov dword [esp + 0x60], eax
mov ecx, eax
mov ebp, eax
mov eax, dword [esp + 0x78]
sub ebp, edx
add eax, edx
dec ebp
imul ebp, dword [esp + 0x54]
and eax, 7
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x64], eax
mov edi, dword [esp + 0x58]
xor eax, eax
xor ebx, ebx
xor edx, edx
test esi, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 0xffffffff
jle 0x43ce20
mov dword [esp + 0x24], esi
jmp 0x43ccfd
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
add eax, edi
add ebx, ecx
cmp eax, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
jl 0x43cd20
inc ebx
sub eax, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov cl, byte [esi]
inc esi
cmp ecx, eax
mov dword [esp + 0x14], esi
je 0x43cd74
mov esi, dword [esp + 0x70]
mov dword [esp + 0x18], ecx
shl ecx, 2
xor eax, eax
test esi, esi
jle 0x43cd74
mov edx, dword [esp + 0x74]
mov edi, dword [0x4d6730]
add ecx, edx
mov esi, dword [esp + 0x64]
xor edx, edx
mov dl, byte [ecx]
inc eax
inc ecx
lea edx, [edi + edx*8]
mov dl, byte [edx + esi]
mov byte [eax + 0x4d672b], dl
mov edx, dword [esp + 0x70]
cmp eax, edx
jl 0x43cd52
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x70]
mov esi, edx
cmp eax, 3
jne 0x43cdd7
mov eax, dword [esp + 0x5c]
add edx, ebp
add edx, eax
mov edi, esi
mov ebx, 0x80
and edi, 7
xor ebp, ebp
mov ecx, edi
mov eax, 7
sar ebx, cl
mov dword [esp + 0x20], ebx
jmp 0x43cda6
mov ebx, dword [esp + 0x20]
xor ecx, ecx
mov cl, byte [ebp + 0x4d672c]
and ecx, ebx
mov ebx, ecx
mov ecx, edi
shl ebx, cl
mov ecx, eax
sar ebx, cl
mov cl, byte [edx]
or cl, bl
inc ebp
dec eax
mov byte [edx], cl
cmp eax, 4
jg 0x43cda2
mov ebx, dword [esp + 0x1c]
inc esi
inc edx
cmp esi, ebx
jb 0x43cd87
mov ebp, dword [esp + 0x2c]
jmp 0x43ce03
mov eax, dword [esp + 0x5c]
mov edx, esi
shr edx, 3
add edx, ebp
mov ecx, esi
add eax, edx
and ecx, 7
mov edx, 0x80
sar edx, cl
mov cl, byte [0x4d672c]
and dl, cl
mov cl, byte [eax]
or cl, dl
inc esi
cmp esi, ebx
mov byte [eax], cl
jb 0x43cdd7
mov eax, dword [esp + 0x24]
mov edx, ebx
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jne 0x43ccf5
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x54]
inc eax
sub ebp, edi
and eax, 7
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
inc eax
cmp eax, ecx
mov dword [esp + 0x68], eax
jl 0x43cccd
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x30]
mov edx, ecx
mov dword [esp + 0x68], edx
mov edi, dword [esp + 0x58]
add edi, esi
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x34]
dec edi
mov dword [esp + 0x34], edi
jne 0x43cc75
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret