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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x477a20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x128]
mov dword [esp + 0x38], ecx
call fcn.00445750
test eax, eax
je 0x446ca6
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x446765
cmp ebx, 0xffffffff
mov dword [esp + 0x28], 1
jne 0x44676d
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x54]
call fcn.004454f0
add esi, 0x2c
xor edi, edi
push esi
lea ecx, [esp + 0x58]
mov dword [esp + 0xc4], edi
call fcn.00445580
lea ecx, [esp + 0x54]
call fcn.00445780
test eax, eax
jne 0x446a65
lea eax, [esp + 0x40]
lea ecx, [esp + 0x54]
push eax
call fcn.004021c0
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x446c84
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0046d67c
push eax
push edi
lea ecx, [esp + 0x80]
call fcn.0041b900
mov edx, dword [esp + 0x4c]
mov byte [esp + 0xc0], 1
push edx
call fcn.0046d67c
push eax
push edi
lea ecx, [esp + 0xac]
call fcn.0041b900
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x8c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x90]
test eax, eax
jle 0x446a1a
mov eax, dword [esp + 0x94]
xor esi, esi
test eax, eax
jle 0x446a0a
mov edx, dword [esp + 0xa8]
push esi
push edi
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4469fa
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x44696e
xor ecx, ecx
mov edx, eax
mov cl, ah
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
fild dword [esp + 0x10]
shr edx, 0x10
and edx, 0xff
fmul qword [0x47fe98]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, ebx
shr eax, 0x10
fmul qword [0x47fe90]
and eax, 0xff
shr ecx, 0x10
faddp st(1)
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
and ecx, 0xff
fmul qword [0x47fe88]
faddp st(1)
fmul qword [0x47d278]
fld qword [0x47bdb8]
fsub st(1)
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul st(1)
fild dword [esp + 0x10]
fmul st(3)
faddp st(1)
call fcn.0040be58
xor edx, edx
xor ecx, ecx
mov dh, al
xor eax, eax
mov cl, byte [ebp + 9]
mov al, bh
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul st(1)
fild dword [esp + 0x10]
mov ebx, edx
fmul st(3)
faddp st(1)
call fcn.0040be58
mov edx, dword [ebp + 0xc]
and edx, 0xff
mov bl, al
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
and eax, 0xff
mov dword [esp + 0x10], eax
fmul st(1)
fild dword [esp + 0x10]
shl ebx, 8
fmul st(3)
faddp st(1)
call fcn.0040be58
mov ecx, dword [esp + 0x7c]
and eax, 0xff
or eax, ebx
push eax
push esi
fstp st(0)
push edi
push ecx
fstp st(0)
call dword [sym.imp.GDI32.dll_SetPixel]
mov ebx, dword [ebp + 0xc]
jmp 0x4469fa
xor edx, edx
mov ecx, eax
mov dl, ah
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
shr ecx, 0x10
and ecx, 0xff
fmul qword [0x47fe98]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul qword [0x47fe90]
faddp st(1)
fild dword [esp + 0x10]
fmul qword [0x47fe88]
faddp st(1)
fst qword [esp + 0x2c]
fmul qword [0x47d278]
fld qword [0x498888]
call fcn.004611d0
fmul qword [0x47d280]
call fcn.0040be58
and eax, 0xff
and eax, 0xff
mov edx, eax
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x7c]
push edx
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x94]
inc esi
cmp esi, eax
jl 0x446827
mov ecx, dword [esp + 0x90]
inc edi
cmp edi, ecx
jl 0x44681d
lea ecx, [esp + 0xa4]
call fcn.0041ba30
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 0
call fcn.0041ba30
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_CreateIconIndirect]
push eax
lea ecx, [esp + 0x58]
call fcn.004456c0
mov edx, dword [esp + 0x4c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call esi
mov eax, dword [esp + 0x50]
push eax
call esi
jmp 0x446c84
lea ecx, [esp + 0x54]
call fcn.00445d00
test eax, eax
je 0x446c84
lea ecx, [esp + 0x54]
call fcn.00445d00
lea ecx, [esp + 0x2c]
mov edi, eax
push ecx
lea ecx, [esp + 0x58]
call fcn.00445810
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x2c]
test eax, eax
jbe 0x446c84
mov dword [esp + 0x10], eax
xor edx, edx
mov dl, byte [edi + 3]
mov esi, edx
test esi, esi
mov dword [esp + 0x3c], esi
je 0x446c72
xor ecx, ecx
mov cl, byte [edi]
mov eax, ecx
shl eax, 8
sub eax, ecx
xor ecx, ecx
cdq
idiv esi
mov cl, byte [edi + 1]
mov dword [esp + 0x24], eax
mov eax, ecx
shl eax, 8
sub eax, ecx
xor ecx, ecx
cdq
idiv esi
mov cl, byte [edi + 2]
mov dword [esp + 0x20], eax
mov eax, ecx
shl eax, 8
sub eax, ecx
cdq
fild dword [esp + 0x20]
idiv esi
fmul qword [0x47fe98]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
fild dword [esp + 0x14]
test eax, eax
fmul qword [0x47fe88]
faddp st(1)
fild dword [esp + 0x24]
fmul qword [0x47fe90]
faddp st(1)
je 0x446bd4
mov ecx, dword [ebp + 8]
mov eax, ebx
fmul qword [0x47d278]
fld qword [0x47bdb8]
shr eax, 0x10
and eax, 0xff
fsub st(1)
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
shr ecx, 0x10
and ecx, 0xff
fmul st(1)
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
call fcn.0040be58
xor edx, edx
and eax, 0xff
mov dl, bh
mov dword [esp + 0x24], eax
and edx, 0xff
xor eax, eax
mov al, byte [ebp + 9]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
and eax, 0xff
mov dword [esp + 0x14], eax
fmul st(1)
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
call fcn.0040be58
mov ecx, dword [ebp + 8]
and ebx, 0xff
mov dword [esp + 0x14], ebx
and ecx, 0xff
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
and eax, 0xff
mov dword [esp + 0x20], eax
fmul st(1)
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
call fcn.0040be58
fstp st(0)
and eax, 0xff
fstp st(0)
mov ebx, eax
jmp 0x446c19
fst qword [esp + 0x14]
fmul qword [0x47d278]
fld qword [0x498888]
call fcn.004611d0
fmul qword [0x47d280]
call fcn.0040be58
fild dword [esp + 0x3c]
and eax, 0xff
mov ebx, eax
fdiv qword [0x498880]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.0040be58
and eax, 0xff
mov esi, eax
mov eax, dword [esp + 0x24]
imul ebx, esi
imul eax, esi
mov ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x20]
imul eax, esi
mov ecx, eax
mov eax, 0x80808081
mov byte [edi], dl
imul ecx
add edx, ecx
mov eax, 0x80808081
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov byte [edi + 1], dl
imul ebx
add edx, ebx
mov ebx, dword [ebp + 0xc]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [edi + 2], dl
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x446aa4
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.00445580
lea ecx, [esp + 0x54]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00445740
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8