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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10050ae2
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x10080e78]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp ecx, ebx
je 0x1001da00
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], vtable.CBitmap.0
push 0x10
mov dword [esp + 0x84], ebx
call sub.mfc90.dll_Ordinal_798
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x80], 1
cmp eax, ebx
je 0x1001da36
mov ecx, eax
call sub.mfc90.dll_Ordinal_367
mov ebx, eax
mov edi, dword [ebp + 8]
mov byte [esp + 0x80], 0
mov dword [esi + 4], ebx
test edi, edi
jne 0x1001da4c
xor eax, eax
jmp 0x1001da4f
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebx
call sub.mfc90.dll_Ordinal_1357
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
push 1
call edx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
mov eax, dword [edi + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x20]
call sub.mfc90.dll_Ordinal_1358
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 4]
push ecx
push edx
call sub.mfc90.dll_Ordinal_6074
fild dword [esi + 8]
mov eax, dword [ebp + 0x18]
fmul qword [0x10058978]
fstp qword [esp + 0x44]
fild dword [ebp + 0x18]
test eax, eax
jge 0x1001dab4
fadd qword [0x10058970]
mov ecx, dword [ebp + 0x1c]
fld st(0)
fst qword [esp + 0x2c]
fild dword [ebp + 0x1c]
test ecx, ecx
jge 0x1001daca
fadd qword [0x10058970]
mov edx, dword [ebp + 0x20]
fld st(0)
fst qword [esp + 0x34]
fild dword [ebp + 0x20]
test edx, edx
jge 0x1001dae0
fadd qword [0x10058970]
mov eax, dword [ebp + 0xc]
fld st(0)
fst qword [esp + 0x3c]
fild dword [ebp + 0xc]
test eax, eax
jge 0x1001daf6
fadd qword [0x10058970]
mov ecx, dword [ebp + 0x10]
fsubp st(6)
fld qword [0x10058968]
fmul st(6), st(0)
fxch st(6)
fstp qword [esp + 0x4c]
fild dword [ebp + 0x10]
test ecx, ecx
jge 0x1001db16
fadd qword [0x10058970]
mov edx, dword [ebp + 0x14]
fsubp st(4)
fxch st(3)
fmul st(5)
fstp qword [esp + 0x54]
fild dword [ebp + 0x14]
test edx, edx
jge 0x1001db30
fadd qword [0x10058970]
fsubp st(1)
xor edi, edi
mov dword [esp + 0x14], edi
fmulp st(4)
fxch st(3)
fstp qword [esp + 0x5c]
jmp 0x1001db48
fxch st(1)
fxch st(2)
fxch st(1)
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov al, byte [esp + 0x18]
movzx ecx, al
shl ecx, 8
fldcw word [esp + 0x12]
fnstcw word [esp + 0x12]
fxch st(1)
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
movzx edx, byte [esp + 0x18]
movzx eax, dl
fldcw word [esp + 0x12]
or ecx, eax
shl ecx, 8
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
movzx edx, byte [esp + 0x18]
movzx eax, dl
fldcw word [esp + 0x12]
or ecx, eax
push ecx
lea ecx, [esp + 0x28]
call sub.mfc90.dll_Ordinal_333
mov ebx, eax
fild dword [esp + 0x14]
fld qword [esp + 0x44]
fmul st(1), st(0)
fxch st(1)
call fcn.1004dbc0
inc edi
mov dword [esp + 0x18], edi
fimul dword [esp + 0x18]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0
call fcn.1004dbc0
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 4]
test ebx, ebx
je 0x1001dc11
mov ebx, dword [ebx + 4]
mov edx, dword [eax + 4]
push ebx
lea ecx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CBrush.0
call fcn.10001760
fld qword [esp + 0x4c]
cmp edi, 0x100
fadd qword [esp + 0x2c]
mov dword [esp + 0x14], edi
fst qword [esp + 0x2c]
fld qword [esp + 0x54]
fadd qword [esp + 0x34]
fst qword [esp + 0x34]
fld qword [esp + 0x5c]
fadd qword [esp + 0x3c]
fst qword [esp + 0x3c]
jl 0x1001db42
fstp st(0)
lea ecx, [esp + 0x1c]
fstp st(1)
mov dword [esp + 0x80], 0xffffffff
fstp st(0)
mov dword [esp + 0x1c], vtable.CBitmap.0
call fcn.10001760
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c