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

Disassembly:
push 0xffffffffffffffff
push 0xd1b588
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push edi
mov eax, dword [0xd916ec]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
mov ebx, dword [esp + 0x80]
mov edi, ebp
sub edi, ebx
inc edi
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x1c], edi
neg ecx
or ecx, eax
push ecx
call fcn.00cb7a7c
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], 0
cmp edi, 1
jle 0xc2bc29
push edi
call fcn.00cb7a7c
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x78], 1
mov eax, ebx
cmp ebx, ebp
jg 0xc2bbd7
mov ecx, dword [esp + 0x18]
sub ecx, ebx
jmp 0xc2bbc0
mov edx, dword [esi + 0x10]
mov edx, dword [edx + eax*4]
mov dl, byte [edx + 0xd2]
and dl, 0x1f
mov byte [ecx + eax], dl
inc eax
cmp eax, ebp
jle 0xc2bbc0
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00cb7a7c
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
push eax
push ecx
push edi
call dword [sym.imp.USP10.dll_ScriptLayout]
mov edx, dword [esp + 0x20]
push edx
call fcn.00cb9081
mov byte [esp + 0x7c], 0
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.00cb9081
add esp, 4
jmp 0xc2bc33
mov ecx, dword [esp + 0x14]
mov dword [ecx], 0
fld qword [0xd5f430]
mov dword [esp + 0x18], ebx
fst qword [esp + 0x2c]
fld qword [0xd5f4c8]
fst qword [esp + 0x34]
cmp ebx, ebp
jg 0xc2bde2
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
lea esp, [esp]
mov edi, dword [esp + 0x18]
fstp st(0)
mov edx, dword [esi + 0x10]
fstp st(0)
fldz
add edi, edi
add edi, edi
fst qword [esp + 0x5c]
mov eax, dword [edi + edx]
fst qword [esp + 0x44]
mov ebx, dword [eax + 0xfc]
fst qword [esp + 0x3c]
lea ecx, [esp + 0x3c]
fstp qword [esp + 0x54]
push ecx
mov ecx, dword [esi + 0x13c]
lea edx, [esp + 0x60]
push edx
push ecx
push eax
lea edx, [esp + 0x64]
lea ecx, [esp + 0x54]
call fcn.00c29f20
mov eax, dword [esi + 0x10]
mov eax, dword [eax + edi]
mov edx, dword [eax + 0xa4]
shr edx, 3
add esp, 0x10
test dl, 1
je 0xc2bcc5
fld qword [eax + 0x30]
jmp 0xc2bcd8
mov eax, dword [eax + 0xa8]
test eax, eax
je 0xc2bcd6
call fcn.00bf83b0
jmp 0xc2bcd8
fldz
mov eax, dword [esi + 0x104]
fstp qword [esp + 0x24]
push 0x5a
push eax
call ebp
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov eax, dword [esi + 0x10]
mov eax, dword [eax + edi]
fmul qword [esp + 0x24]
mov ecx, dword [eax + 0xa4]
shr ecx, 3
fdiv qword [0xd5f448]
fld qword [esp + 0x3c]
fchs
fst qword [esp + 0x64]
fsubrp st(1)
fstp qword [esp + 0x3c]
test cl, 1
je 0xc2bd22
fld qword [eax + 0x30]
jmp 0xc2bd35
mov eax, dword [eax + 0xa8]
test eax, eax
je 0xc2bd33
call fcn.00bf83b0
jmp 0xc2bd35
fldz
mov eax, dword [esi + 0x104]
fstp qword [esp + 0x24]
push 0x5a
push eax
call ebp
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fmul qword [esp + 0x24]
fdiv qword [0xd5f448]
fsubr qword [esp + 0x44]
fld qword [esp + 0x54]
fadd st(1), st(0)
fxch st(1)
fst qword [esp + 0x54]
fld qword [esp + 0x64]
call fcn.00d18790
fxch st(1)
mov edx, dword [esi + 0x10]
fadd qword [esp + 0x5c]
mov ecx, dword [edi + edx]
mov dword [ecx + 0xc0], eax
call fcn.00d18790
fld qword [esp + 0x3c]
mov edx, dword [esi + 0x10]
fcomp qword [esp + 0x2c]
mov ecx, dword [edi + edx]
mov dword [ecx + 0xcc], eax
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x2c]
je 0xc2bda9
lea eax, [esp + 0x3c]
fld qword [eax]
fst qword [esp + 0x2c]
fld qword [esp + 0x34]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
lea eax, [esp + 0x34]
je 0xc2bdc6
lea eax, [esp + 0x54]
fld qword [eax]
mov eax, dword [esp + 0x18]
inc eax
fst qword [esp + 0x34]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x84]
jle 0xc2bc60
mov eax, dword [esi]
fsubrp st(1)
dec eax
fstp qword [esp + 0x54]
fldz
fstp qword [esp + 0x24]
je 0xc2c0ff
dec eax
je 0xc2c0f0
dec eax
jne 0xc2c116
fld qword [esp + 0x90]
fcomp qword [esi + 0x128]
fnstsw ax
test ah, 1
je 0xc2c116
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x78], 2
mov dword [esp + 0x20], ecx
cmp eax, ecx
jbe 0xc2be53
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00c2e530
fldz
mov edi, dword [esp + 0x80]
fstp qword [esp + 0x5c]
cmp edi, dword [esp + 0x84]
jg 0xc2bf89
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x18], edx
jmp 0xc2be82
fstp st(0)
mov eax, dword [esi + 0x10]
mov eax, dword [eax + edi*4]
mov edx, dword [eax + 0xb0]
cmp edx, dword [eax + 0xb4]
jge 0xc2befe
jmp 0xc2bea0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + edi*4]
mov ebx, 0x400
test word [ecx + 0xd0], bx
mov ebx, dword [eax + ebp*4]
mov ecx, 0
sete cl
lea ecx, [ecx + ecx - 1]
add ecx, edx
cmp ecx, dword [ebx + 0xb4]
jge 0xc2beef
mov ebx, dword [esp + 0x80]
mov eax, dword [eax + ebx*4]
cmp ecx, dword [eax + 0xb0]
jl 0xc2beef
mov eax, dword [esi + 0x100]
test byte [ecx + eax], 8
je 0xc2beef
mov eax, dword [esp + 0x18]
inc dword [eax]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + edi*4]
inc edx
cmp edx, dword [eax + 0xb4]
jl 0xc2bea0
mov ecx, dword [esi + 0x10]
mov ebx, dword [ecx + edi*4]
mov edx, dword [ebx + 0xa4]
shr edx, 1
test dl, 1
je 0xc2bf16
fld qword [ebx + 0x20]
jmp 0xc2bf2d
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0xc2bf27
call fcn.00bf8410
jmp 0xc2bf2d
fld qword [0xd5f488]
mov eax, dword [ebx + 0xa4]
fstp qword [esp + 0x34]
shr eax, 2
test al, 1
je 0xc2bf43
fld qword [ebx + 0x28]
jmp 0xc2bf56
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0xc2bf54
call fcn.00bf83e0
jmp 0xc2bf56
fld1
mov eax, dword [esp + 0x18]
fild dword [eax]
inc edi
add eax, 4
mov dword [esp + 0x18], eax
fmul qword [esp + 0x34]
fmulp st(1)
fadd qword [esp + 0x5c]
fst qword [esp + 0x5c]
cmp edi, ebp
jle 0xc2be80
fld st(0)
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0xc2bfa8
fstp st(0)
mov byte [esp + 0x78], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0xc2c116
push eax
call fcn.00cb8a36
add esp, 4
jmp 0xc2c116
fld qword [esi + 0x128]
mov edi, dword [esp + 0x80]
fsub qword [esp + 0x90]
fdivrp st(1)
fstp qword [esp + 0x64]
mov ecx, dword [esi + 0x10]
mov ebx, dword [ecx + edi*4]
mov edx, dword [ebx + 0xa4]
shr edx, 1
test dl, 1
je 0xc2bfda
fld qword [ebx + 0x20]
jmp 0xc2bff1
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0xc2bfeb
call fcn.00bf8410
jmp 0xc2bff1
fld qword [0xd5f488]
mov eax, dword [ebx + 0xa4]
fstp qword [esp + 0x90]
shr eax, 2
test al, 1
je 0xc2c00a
fld qword [ebx + 0x28]
jmp 0xc2c01d
mov eax, dword [ebx + 0xa8]
test eax, eax
je 0xc2c01b
call fcn.00bf83e0
jmp 0xc2c01d
fld1
fmul qword [esp + 0x90]
fmul qword [esp + 0x64]
call fcn.00d18790
mov edx, dword [ebx + 0xb0]
mov ebp, eax
cmp edx, dword [ebx + 0xb4]
jge 0xc2c0c7
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + edi*4]
mov ebx, 0x400
test word [eax + 0xd0], bx
mov ebx, dword [esp + 0x84]
mov ebx, dword [ecx + ebx*4]
mov eax, 0
sete al
lea eax, [eax + eax - 1]
add eax, edx
cmp eax, dword [ebx + 0xb4]
jge 0xc2c0b4
mov ebx, dword [esp + 0x80]
mov ebx, dword [ecx + ebx*4]
cmp eax, dword [ebx + 0xb0]
jl 0xc2c0b4
mov ebx, dword [esi + 0x100]
test byte [eax + ebx], 8
je 0xc2c0b4
mov ecx, dword [ecx + edi*4]
mov eax, edx
sub eax, dword [ecx + 0xb0]
mov ecx, dword [ecx + 0xe4]
add dword [ecx + eax*4], ebp
lea ecx, [ecx + eax*4]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + edi*4]
add dword [ecx + 0xc8], ebp
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + edi*4]
inc edx
cmp edx, dword [eax + 0xb4]
jl 0xc2c041
inc edi
cmp edi, dword [esp + 0x84]
jle 0xc2bfc2
mov byte [esp + 0x78], 0
cmp dword [esp + 0x44], 0
je 0xc2c116
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00cb8a36
add esp, 4
jmp 0xc2c116
fld qword [esi + 0x128]
fsub qword [esp + 0x90]
jmp 0xc2c112
fld qword [esi + 0x128]
fsub qword [esp + 0x90]
fmul qword [0xd5f450]
fstp qword [esp + 0x24]
mov edx, dword [esp + 0x84]
cmp dword [esp + 0x80], edx
jg 0xc2c21e
fld qword [esp + 0x88]
mov eax, dword [esp + 0x1c]
fsub qword [esp + 0x2c]
mov ebx, dword [esi + 0x10]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x84], eax
fstp qword [esp + 0x64]
fld qword [esp + 0x24]
mov edi, dword [ebp]
add edi, dword [esp + 0x80]
call fcn.00d18790
mov ecx, dword [ebx + edi*4]
mov dword [ecx + 0xb8], eax
mov edx, dword [esi + 0x10]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0xa4]
lea ebx, [edx + edi*4]
shr ecx, 3
test cl, 1
je 0xc2c183
fld qword [eax + 0x30]
jmp 0xc2c196
mov eax, dword [eax + 0xa8]
test eax, eax
je 0xc2c194
call fcn.00bf83b0
jmp 0xc2c196
fldz
mov eax, dword [esi + 0x104]
fstp qword [esp + 0x88]
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [esp + 0x90], eax
fild dword [esp + 0x90]
mov edx, dword [ebx]
fmul qword [esp + 0x88]
fdiv qword [0xd5f448]
fild dword [edx + 0xc4]
fadd qword [esp + 0x64]
fsubrp st(1)
call fcn.00d18790
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + edi*4]
mov dword [edx + 0xbc], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0xbc]
add dword [eax + 0xc0], ecx
mov ebx, dword [esi + 0x10]
mov edx, dword [ebx + edi*4]
fild dword [edx + 0xc8]
add ebp, 4
dec dword [esp + 0x84]
fadd qword [esp + 0x24]
fst qword [esp + 0x24]
jne 0xc2c14f
jmp 0xc2c222
fld qword [esp + 0x24]
fcomp qword [esi + 0x118]
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x24]
je 0xc2c239
lea eax, [esi + 0x118]
fld qword [eax]
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0x14]
fstp qword [esi + 0x118]
push eax
call fcn.00cb9081
fld qword [esp + 0x58]
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x6c
ret 0x18