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

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0xa4]
push ebx
push ebp
push esi
movzx cx, byte [eax]
lea edx, [esp + 0x84]
push edi
lea eax, [esp + 0x80]
push edx
push eax
mov word [esp + 0x7c], cx
call fcn.100d3780
lea eax, [esp + 0x78]
fld qword [esp + 0xa8]
fmul qword [0x10113750]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x44], ecx
fmul qword [0x10113758]
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
fstp qword [esp + 0xb4]
push esi
call fcn.100839c0
mov eax, dword [esp + 0x78]
cmp eax, 1
je 0x100cdbdd
push 0
push eax
push 0xfffff448
push 0x488
push str.C:_accusoftgear_sourceIMG_PROCROTATE.C
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0x14
fld qword [esp + 0xa8]
fchs
fst qword [esp + 0x6c]
fld st(0)
fcos
mov edi, dword [esp + 0xb0]
cmp edi, 1
fst qword [esp + 0x58]
fstp qword [esp + 0x30]
fsin
fst qword [esp + 0x4c]
fstp qword [esp + 0x28]
jne 0x100cdc3b
fld qword [esp + 0x44]
lea eax, [esp + 0x90]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
sub esp, 8
fchs
fstp qword [esp]
push eax
push ecx
call fcn.100cd4f0
jmp 0x100cdc4b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x54]
push ecx
push edx
push esi
call fcn.10082a60
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
push ecx
push 0
push 1
push edx
push eax
push esi
call sym.GEAR32PO.OCX_GPb_palette_pointer_get
push eax
push esi
call sym.GEAR32PO.OCX_GPb_IP_allocate_dest_DIB
mov ebp, eax
push esi
mov dword [esp + 0x40], ebp
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
test ebp, ebp
mov esi, eax
jne 0x100cdcc9
mov ecx, dword [esp + 0x24]
push ebp
imul ecx, dword [esp + 0x14]
push ecx
push 0xfffffc18
push 0x4b1
push str.C:_accusoftgear_sourceIMG_PROCROTATE.C
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0x14
push ebp
call fcn.10032bc0
mov ebx, eax
push esi
mov dword [esp + 0x68], ebx
call fcn.10032bc0
push esi
mov dword [esp + 0x80], eax
call fcn.10032ac0
push ebp
mov dword [esp + 0x6c], eax
call fcn.10032ac0
fld qword [esp + 0x6c]
fsub qword [str.PERT]
mov dword [esp + 0x60], eax
fld st(0)
fcos
fmul qword [0x10113748]
call sub.MSVCRT.dll__ftol
fsin
mov dword [esp + 0x6c], eax
fmul qword [0x10113770]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x58]
fmul qword [0x10113748]
mov dword [esp + 0x44], eax
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x4c]
fmul qword [0x10113770]
mov dword [esp + 0x84], eax
call sub.MSVCRT.dll__ftol
cmp edi, 1
mov dword [esp + 0x58], eax
jne 0x100cddbe
fild dword [esp + 0x90]
fild dword [esp + 0x94]
fld qword [esp + 0x28]
fld qword [esp + 0x30]
fmul st(3)
fxch st(1)
fmul st(2)
fild dword [esp + 0x18]
fxch st(2)
faddp st(1)
fxch st(1)
fmul qword [0x10113760]
fsubp st(1)
fmul qword [0x10113748]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x28]
fld qword [esp + 0x30]
fmul st(2)
fild dword [esp + 0x14]
fxch st(2)
fmul st(4)
fxch st(2)
fmul qword [0x10113760]
fxch st(2)
fsubp st(1)
fxch st(1)
mov dword [esp + 0x1c], eax
fsubp st(1)
fmul qword [0x10113748]
call sub.MSVCRT.dll__ftol
jmp 0x100cde1a
fild dword [esp + 0x18]
fild dword [esp + 0x14]
fld qword [esp + 0x30]
fxch st(2)
fmul qword [0x10113760]
fld qword [esp + 0x28]
fxch st(2)
fmul qword [0x10113760]
fxch st(3)
fmul st(1)
fxch st(2)
fmul st(3)
faddp st(2)
fxch st(1)
fsub st(1)
fmul qword [0x10113748]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x28]
fld qword [esp + 0x30]
fmul st(3)
fxch st(1)
fmul st(2)
mov dword [esp + 0x1c], eax
fsubp st(1)
fsub st(2)
fmul qword [0x10113748]
call sub.MSVCRT.dll__ftol
fxch st(1)
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
fstp st(0)
xor edi, edi
test eax, eax
fstp st(0)
mov dword [esp + 0x28], edi
jle 0x100cdf4b
mov esi, eax
mov edx, dword [esp + 0x60]
sub esi, edi
mov ebp, dword [esp + 0x1c]
dec esi
mov ecx, dword [esp + 0x20]
imul esi, ebx
add esi, edx
mov dword [esp + 0x38], ebp
test ebx, ebx
mov dword [esp + 0x40], ecx
jle 0x100cdeff
mov dword [esp + 0x4c], ebx
mov edi, dword [esp + 0x14]
xor bl, bl
mov edx, 7
mov eax, ebp
sar eax, 0x10
sar ecx, 0x10
js 0x100cdeb5
cmp ecx, edi
jge 0x100cdeb5
test eax, eax
jl 0x100cdeb5
cmp eax, dword [esp + 0x18]
jge 0x100cdeb5
sub edi, ecx
mov ebp, eax
dec edi
and al, 7
imul edi, dword [esp + 0x7c]
sar ebp, 3
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x68]
mov cl, 7
add ebp, edi
sub cl, al
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov al, byte [eax + ebp]
shr al, cl
mov ecx, edx
and al, 1
shl al, cl
or bl, al
jmp 0x100cdebf
mov al, byte [esp + 0x74]
mov ecx, edx
shl al, cl
or bl, al
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x58]
add ebp, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], ebp
add ecx, eax
dec edx
mov dword [esp + 0x40], ecx
jns 0x100cde69
mov eax, dword [esp + 0x4c]
mov byte [esi], bl
inc esi
dec eax
mov dword [esp + 0x4c], eax
jne 0x100cde5e
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x20]
add ebp, ecx
mov ecx, dword [esp + 0x80]
add esi, edx
mov dword [esp + 0x1c], ebp
test ecx, ecx
mov dword [esp + 0x20], esi
je 0x100cdf3a
push eax
mov eax, dword [esp + 0x8c]
push edi
push eax
call ecx
test eax, eax
je 0x100cdf6b
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
mov dword [esp + 0x28], edi
jl 0x100cde34
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0xa4]
push ebp
push ecx
call sym.GEAR32PO.OCX_GPb_IP_replace_DIB
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0x14
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x3c]
push ecx
push edx
call sym.GEAR32PO.OCX_GPb_DIB_free
mov eax, dword [esp + 0x10]
push eax
push edi
push 0xfffff7bf
push 0x503
push str.C:_accusoftgear_sourceIMG_PROCROTATE.C
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0x14