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

Disassembly:
push 0xffffffffffffffff
push 0x509633
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [0x575f54]
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0xc4]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
mov dword [esp + 0xbc], 0
call fcn.0041ee20
mov edx, dword [esp + 0x14]
push 0x57ce60
push edx
call fcn.004a1876
add esp, 8
test eax, eax
je 0x421670
fld qword [edi + 0x78]
push ebx
lea eax, [esp + 0x50]
fstp dword [esp + 0x10]
fld qword [edi + 0x70]
mov edx, dword [esp + 0x10]
push ebp
fstp dword [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x88]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00416120
fld qword [edi + 0x88]
lea edx, [esp + 0x20]
lea eax, [esp + 0x4c]
fstp dword [esp + 0x14]
fld qword [edi + 0x80]
mov ecx, dword [esp + 0x14]
push edx
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esi + 0x88]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00416120
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
sub eax, edx
cdq
mov ebp, eax
mov eax, dword [esp + 0x54]
xor ebp, edx
sub eax, ebx
sub ebp, edx
push 0x18
cdq
mov ebx, eax
lea edi, [ebp + 1]
xor ebx, edx
mov eax, edi
sub ebx, edx
mov dword [esp + 0x4c], ebp
imul eax, ebx
push ebx
push ebp
lea ecx, [eax + eax*2]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0xa8]
call fcn.00442590
mov edx, dword [esp + 0x14]
mov byte [esp + 0xc0], 1
push edx
call fcn.004dc4af
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xcc]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
lea ecx, [esp + 0xa8]
call fcn.00442c80
mov eax, dword [esp + 0xd0]
xor edx, edx
cmp eax, edx
je 0x42140d
fld qword [0x5155f0]
jmp 0x421413
fld qword [0x515678]
cmp ebx, edx
jle 0x42169d
lea eax, [edi + edi*2]
mov edi, dword [esp + 0xb0]
cdq
and edx, 3
mov dword [esp + 0x28], edi
add eax, edx
mov dword [esp + 0x18], ebx
sar eax, 2
mov edx, eax
lea ecx, [eax*4]
mov dword [esp + 0x40], ecx
lea ecx, [ebx*4 - 4]
imul ecx, eax
mov eax, dword [esp + 0x14]
neg edx
shl edx, 2
add ecx, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], ecx
test ebp, ebp
jle 0x421587
fld qword [0x512a30]
fsub st(1)
mov esi, ecx
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x34]
mov dword [esp + 0x5c], 0
mov ebp, dword [edx + 0x18c]
mov eax, ebp
and eax, 0xff
mov dword [esp + 0x58], eax
fild qword [esp + 0x58]
fmul st(1)
call fcn.004a1790
mov ecx, ebp
mov dword [esp + 0x6c], 0
shr ecx, 8
and ecx, 0xff
mov byte [esp + 0x50], al
mov dword [esp + 0x68], ecx
fild qword [esp + 0x68]
fmul st(1)
call fcn.004a1790
shr ebp, 0x10
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], 0
fild qword [esp + 0x60]
mov byte [esp + 0x38], al
fmul st(1)
call fcn.004a1790
xor edx, edx
mov byte [esp + 0x44], al
mov dl, byte [edi]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], edx
and eax, 0xff
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul st(2)
fild dword [esp + 0x10]
faddp st(1)
call fcn.004a1790
mov byte [esi], al
inc esi
mov edx, dword [esp + 0x38]
inc edi
xor ecx, ecx
and edx, 0xff
mov cl, byte [edi]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fmul st(2)
fild dword [esp + 0x10]
faddp st(1)
call fcn.004a1790
mov byte [esi], al
inc esi
mov ecx, dword [esp + 0x50]
inc edi
xor eax, eax
and ecx, 0xff
mov al, byte [edi]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul st(2)
fild dword [esp + 0x10]
faddp st(1)
call fcn.004a1790
mov byte [esi], al
mov eax, dword [esp + 0x2c]
inc esi
inc edi
dec eax
mov dword [esp + 0x2c], eax
jne 0x421476
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
fstp st(0)
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
add edi, eax
mov eax, dword [esp + 0x18]
add ecx, edx
dec eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x18], eax
jne 0x421460
fstp st(0)
xor edx, edx
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x70]
push edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0xd0]
push ecx
push ebx
push edx
push edx
mov dword [esp + 0xac], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], edx
push edx
mov edx, dword [esp + 0x3c]
push ebx
push ebp
push edx
push eax
push edi
mov dword [esp + 0xa0], 0x28
mov word [esp + 0xae], 0x18
mov dword [esp + 0xa8], ebx
mov word [esp + 0xac], 1
mov dword [esp + 0xa4], ebp
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov eax, dword [esp + 0xd0]
pop ebp
test eax, eax
pop ebx
je 0x42165c
mov ecx, dword [esp + 0xc4]
push 0
push 0
push ecx
push edi
mov ecx, esi
call fcn.00421100
lea ecx, [esp + 0x94]
mov byte [esp + 0xb8], 0
call fcn.00442700
lea ecx, [esp + 0x14]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004e0a3d
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xb4
ret 0xc
fstp st(0)
jmp 0x4215ae