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

Disassembly:
sub esp, 0xbc
push ebx
mov ebx, dword [esp + 0xc4]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
je 0x12ddf1e3
mov esi, dword [esp + 0xe0]
cmp esi, ebp
je 0x12ddf1e3
fld dword [esp + 0xe8]
fcomp dword [0x13076be8]
fnstsw ax
test ah, 1
jne 0x12ddf1e3
fld dword [esp + 0xe8]
fsub dword [0x13076be4]
fcomp dword [0x13076be8]
fnstsw ax
test ah, 0x41
je 0x12ddf1e3
push ebx
call dword [sym.imp.GDI32.dll_SaveDC]
push esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], ebp
call fcn.12dfec30
add esp, 4
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x12ddf1c5
lea ecx, [esp + 0x28]
push edi
push ecx
push eax
mov dword [esp + 0x34], ebp
call fcn.12dff740
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0x28], edi
je 0x12ddf1af
cmp dword [esp + 0x2c], ebp
je 0x12ddf1a4
mov edx, dword [esp + 0x14]
push edx
call fcn.12dfeea0
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x44], esi
call fcn.12dfeec0
add esp, 8
cmp esi, ebp
mov dword [esp + 0x38], eax
je 0x12ddf1a4
cmp eax, ebp
je 0x12ddf1a4
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, eax
cmp edx, ebp
mov dword [esp + 0x20], edx
je 0x12ddf1a4
mov ebx, dword [esp + 0xdc]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xe0]
mov esi, ebx
imul esi, edi
push ebp
lea ecx, [esp + 0x58]
push ebp
push ecx
lea eax, [esp + 0x80]
push ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x64], ebp
mov ebp, dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
shl esi, 2
push edx
mov dword [esp + 0x8c], 0x28
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], edi
mov word [esp + 0x98], 1
mov word [esp + 0x9a], 0x18
mov dword [esp + 0xa0], esi
call ebp
test eax, eax
mov dword [esp + 0x6c], eax
je 0x12ddf120
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xd4]
push 0xcc0020
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edi
push ebx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp ebx, dword [esp + 0x3c]
jne 0x12dded9e
cmp edi, dword [esp + 0x38]
jne 0x12dded9e
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
jmp 0x12ddeee6
mov ecx, dword [esp + 0xd0]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, eax
test edx, edx
mov dword [esp + 0x1c], edx
je 0x12ddf120
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xe0]
xor edi, edi
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0xac], eax
push edi
push ecx
lea eax, [esp + 0xac]
push edi
push eax
push edx
mov dword [esp + 0xb8], 0x28
mov dword [esp + 0xbc], ebx
mov word [esp + 0xc4], 1
mov word [esp + 0xc6], 0x18
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], esi
mov dword [esp + 0x60], edi
call ebp
cmp eax, edi
mov dword [esp + 0x4c], eax
je 0x12ddf120
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x44], eax
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x12ddf124
mov edi, dword [esp + 0x28]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
push 3
push eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0xe0]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x24]
xor ebp, ebp
push edx
push ebp
push ebp
push esi
push eax
push ebx
push ebp
push ebp
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x12ddeeb0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
lea edx, [esp + 0x14]
mov dword [esp + 0x28], ebp
push edx
call fcn.12dfe8b0
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0xe4]
add esp, 4
mov dword [esp + 0x14], ebp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x12ddf120
mov eax, dword [esp + 0xe8]
xor ebp, ebp
mov ecx, eax
mov dword [esp + 0x24], ebp
shr ecx, 8
shr eax, 0x10
test edi, edi
mov byte [esp + 0x60], cl
mov byte [esp + 0x70], al
jle 0x12ddf065
push ebx
push 0x18
call fcn.12dff000
mov esi, eax
mov ecx, dword [esp + 0x3c]
imul esi, ebp
push ebx
push 0x18
add esi, ecx
call fcn.12dff000
mov edi, eax
mov ecx, dword [esp + 0x64]
imul edi, ebp
add esp, 0x10
add edi, ecx
test ebx, ebx
jle 0x12ddf04f
mov ebp, dword [esp + 0xe8]
mov dword [esp + 0x40], ebx
and ebp, 0xff
xor eax, eax
lea ecx, [ebp + 5]
mov al, byte [esi]
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x12ddefab
lea edx, [ebp - 5]
cmp eax, edx
jle 0x12ddefab
mov eax, dword [esp + 0x60]
xor ecx, ecx
mov cl, byte [esi + 1]
and eax, 0xff
lea edx, [eax + 5]
cmp ecx, edx
jge 0x12ddefab
add eax, 0xfffffffb
cmp ecx, eax
jle 0x12ddefab
mov eax, dword [esp + 0x70]
xor ecx, ecx
mov cl, byte [esi + 2]
and eax, 0xff
lea edx, [eax + 5]
cmp ecx, edx
jge 0x12ddefab
add eax, 0xfffffffb
cmp ecx, eax
jg 0x12ddf036
fld dword [0x13076be4]
fsub dword [esp + 0xec]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fmul dword [esp + 0xec]
fild dword [esp + 0x10]
fmul st(2)
faddp st(1)
call fcn.12f5da0c
xor ecx, ecx
mov byte [edi], al
mov cl, byte [esi + 1]
xor edx, edx
mov dl, byte [edi + 1]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fmul st(1)
fild dword [esp + 0x10]
fmul dword [esp + 0xec]
faddp st(1)
call fcn.12f5da0c
mov byte [edi + 1], al
xor eax, eax
mov al, byte [esi + 2]
xor ecx, ecx
mov cl, byte [edi + 2]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul st(1)
fild dword [esp + 0x10]
fmul dword [esp + 0xec]
faddp st(1)
call fcn.12f5da0c
fstp st(0)
mov byte [edi + 2], al
mov eax, dword [esp + 0x40]
add esi, 3
add edi, 3
dec eax
mov dword [esp + 0x40], eax
jne 0x12ddef59
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0xe0]
inc ebp
cmp ebp, eax
mov dword [esp + 0x24], ebp
jl 0x12ddef17
mov edi, eax
test ebx, ebx
jne 0x12ddf06d
mov ebx, dword [esp + 0x3c]
test edi, edi
jne 0x12ddf07c
mov edx, dword [esp + 0x38]
mov dword [esp + 0xe0], edx
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xd8]
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
call dword [sym.imp.GDI32.dll_GetMapMode]
mov edi, dword [sym.imp.GDI32.dll_SetMapMode]
mov esi, eax
cmp esi, 1
je 0x12ddf0d7
mov ebp, dword [esp + 0xd0]
lea eax, [esp + 0x64]
push 1
push eax
push ebp
call dword [sym.imp.GDI32.dll_LPtoDP]
push 1
push ebp
call edi
lea ecx, [esp + 0x64]
push 1
push ecx
push ebp
call dword [sym.imp.GDI32.dll_DPtoLP]
jmp 0x12ddf0de
mov ebp, dword [esp + 0xd0]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xd8]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0xe4]
push eax
push ebx
push ecx
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push ebp
call edi
push 0
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x12ddf13c
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
mov eax, dword [esp + 0x24]
push eax
call ebp
jmp 0x12ddf142
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
push ecx
call ebx
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x12ddf15e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x12ddf175
mov eax, dword [esp + 0x44]
test eax, eax
je 0x12ddf172
push eax
push edi
call ebp
push edi
call ebx
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x12ddf184
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
je 0x12ddf197
mov eax, dword [esp + 0x30]
test eax, eax
je 0x12ddf194
push eax
push esi
call ebp
push esi
call ebx
mov ebx, dword [esp + 0xd0]
mov edi, dword [esp + 0x28]
xor ebp, ebp
cmp edi, ebp
je 0x12ddf1af
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x14]
pop edi
cmp eax, ebp
je 0x12ddf1c5
lea edx, [esp + 0x10]
push edx
call fcn.12dfe8b0
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, ebp
je 0x12ddf1d5
push eax
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbc
ret