Function at 0x1001d6e0
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 0x1001d720
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 0x1001d756
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 0x1001d76c
xor eax, eax
jmp 0x1001d76f
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 + 0xc]
mov eax, dword [ebp + 0xc]
fmul qword [0x10058978]
fstp qword [esp + 0x44]
fild dword [ebp + 0xc]
test eax, eax
jge 0x1001d7d4
fadd qword [0x10058970]
mov ecx, dword [ebp + 0x10]
fld st(0)
fst qword [esp + 0x2c]
fild dword [ebp + 0x10]
test ecx, ecx
jge 0x1001d7ea
fadd qword [0x10058970]
mov edx, dword [ebp + 0x14]
fld st(0)
fst qword [esp + 0x34]
fild dword [ebp + 0x14]
test edx, edx
jge 0x1001d800
fadd qword [0x10058970]
mov eax, dword [ebp + 0x18]
fld st(0)
fst qword [esp + 0x3c]
fild dword [ebp + 0x18]
test eax, eax
jge 0x1001d816
fadd qword [0x10058970]
mov ecx, dword [ebp + 0x1c]
fsubp st(6)
fld qword [0x10058968]
fmul st(6), st(0)
fxch st(6)
fstp qword [esp + 0x4c]
fild dword [ebp + 0x1c]
test ecx, ecx
jge 0x1001d836
fadd qword [0x10058970]
mov edx, dword [ebp + 0x20]
fsubp st(4)
fxch st(3)
fmul st(5)
fstp qword [esp + 0x54]
fild dword [ebp + 0x20]
test edx, edx
jge 0x1001d850
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 0x1001d868
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
mov dword [esp + 0x64], 0
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 + 0x68], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x6c], eax
call fcn.1004dbc0
mov dword [esp + 0x70], eax
mov eax, dword [esi + 4]
test ebx, ebx
je 0x1001d931
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 0x1001d862
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