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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe8
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
mov dword [esp + 0xa0], eax
movsd xmm0, qword [edi + 4]
movsd qword [esp + 0x98], xmm0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
xor ebx, ebx
cmp eax, 0x103
mov eax, 0
cmove eax, edi
test eax, eax
mov dword [esp + 0x7c], eax
cmove eax, edi
movsd xmm0, qword [eax + 0x14]
sete byte [esp]
movsd qword [esp + 0x80], xmm0
lea ecx, [esp + 0x80]
lea edx, [esp + 0x6f]
call fcn.00408550
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x9c]
movsd qword [esp + 4], xmm0
mov eax, dword [ebp + 8]
mov dword [esp], eax
lea ecx, [esp + 0x7c]
call fcn.00408600
movzx eax, byte [esp + 0x74]
test al, 1
jne 0x409a8c
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x94]
movsd qword [esp], xmm0
mov dword [esp + 8], 1
lea ebx, [esp + 0xb4]
mov ecx, ebx
call fcn.0041ca10
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea edi, [esp + 0x24]
mov ecx, esi
push 6
push edi
push ebx
call fcn.0041ca0a
cmp dword [esi], 0
jne 0x409ead
mov edx, dword [esp + 0x24]
mov dword [esi], 0
cmp word [edx], 0
je 0x409ab3
mov dword [esp + 0x24], str.Incorrect_icon_cursor_Reserved_field__should_be_0.
mov word [esp + 0x34], 0x103
call fcn.0041cbd2
mov edi, eax
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x16
sub esp, 0xc
movsd xmm0, qword [esp + 0x1c]
jmp 0x409e97
mov ecx, dword [esp + 0x70]
mov dword [esi], ecx
mov dword [esp + 0x70], 0
test al, 1
test ebx, ebx
je 0x409aa7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
movzx ecx, word [edx + 2]
mov dword [esp + 4], 0
cmp dword [esp + 0x7c], 1
mov eax, 0
adc eax, 1
cmp eax, ecx
jne 0x409e45
xor eax, eax
movzx ecx, byte [esp]
mov al, cl
movzx ecx, word [edx + 4]
mov dword [esp + 0x18], 0
mov ebx, 0
mov dword [esp + 0xc], 0
test ecx, ecx
je 0x40a015
mov dword [esp + 0x68], edx
mov dword [esp + 0x50], eax
mov dword [esp], esi
mov dword [esp + 0x58], ecx
lea esi, [ecx*4]
lea edi, [esi + esi*2]
push edi
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
add edi, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
push esi
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
push esi
mov edi, dword [esp + 4]
push 0
mov dword [esp + 0xc], eax
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor esi, esi
nop
mov dword [esp + 8], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov ecx, edi
push 0xc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0041ca0a
cmp dword [edi], 0
mov esi, edi
jne 0x40a0ed
mov ecx, dword [esp + 0x24]
mov dword [esi], 0
mov eax, dword [esp + 0x18]
cmp ebx, eax
jae 0x409baf
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
movsd xmm0, qword [ecx]
movsd qword [ebx], xmm0
add ebx, 0xc
mov ecx, ebx
jmp 0x409c9c
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x10]
mov ecx, ebx
sub ecx, esi
sar ecx, 2
imul edx, ecx, 0xaaaaaaab
lea edi, [edx + 1]
cmp edi, 0x15555556
jae 0x40a113
sub eax, esi
sar eax, 2
imul eax, eax, 0xaaaaaaab
lea ecx, [eax + eax]
cmp ecx, edi
cmova edi, ecx
cmp eax, 0xaaaaaaa
mov eax, 0x15555555
cmovae edi, eax
test edi, edi
je 0x409c20
mov dword [esp + 0x54], edx
cmp edi, 0x15555556
jae 0x40a11c
lea eax, [edi*4]
lea eax, [eax + eax*2]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edx, dword [esp + 0x54]
jmp 0x409c22
xor eax, eax
lea ecx, [edx + edx*2]
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 8]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0xc]
movsd xmm0, qword [edx]
lea edx, [eax + ecx*4]
lea edi, [edi + edi*2]
lea edi, [eax + edi*4]
movsd qword [eax + ecx*4], xmm0
lea ecx, [eax + ecx*4]
add ecx, 0xc
cmp ebx, esi
je 0x409c80
mov eax, dword [ebx - 4]
mov dword [edx - 4], eax
movsd xmm0, qword [ebx - 0xc]
add ebx, 0xfffffff4
movsd qword [edx - 0xc], xmm0
add edx, 0xfffffff4
cmp ebx, esi
jne 0x409c50
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
test ebx, ebx
jne 0x409c8c
jmp 0x409c99
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
push ebx
mov esi, ecx
call sub.libc.dll_operator_delete_void_
mov ecx, esi
add esp, 4
mov esi, dword [esp]
lea edi, [esp + 0x24]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov ebx, ecx
mov ecx, esi
push 4
push edi
lea eax, [esp + 0xb0]
push eax
call fcn.0041ca0a
cmp dword [esi], 0
mov eax, esi
mov esi, dword [esp + 8]
jne 0x409fcd
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0xb8]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi]
mov edi, dword [esp]
cmp eax, 1
mov eax, ecx
bswap eax
cmove eax, ecx
mov ecx, dword [esp + 4]
mov dword [ecx + esi*4], eax
mov dword [edi], 0
inc esi
cmp esi, dword [esp + 0x58]
jne 0x409b50
mov eax, ebx
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x58], 0
je 0x409fdc
mov dword [esp + 0x64], ecx
lea esi, [ecx + 8]
xor ebx, ebx
mov eax, dword [esp + 4]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 0
mov edx, dword [esi]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov eax, 0
test edx, edx
je 0x409d8a
mov ecx, dword [esp]
mov edi, edx
push edx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0041ca0a
mov eax, dword [esp]
cmp dword [eax], 0
jne 0x409fd4
mov eax, dword [esp + 0x24]
mov edx, edi
mov dword [esp + 8], eax
mov edi, dword [esp]
mov dword [edi], 0
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + 0x10]
mov word [esp + 0x34], cx
lea ecx, [esi - 8]
mov dword [esp + 0x24], 0x41f65c
mov eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0x74]
add eax, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov byte [esp + 0x30], 1
mov dword [esp + 0x5c], 0x40bed0
mov dword [esp + 0x60], 0
sub esp, 0x10
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp + 8], xmm0
lea eax, [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov ecx, edi
call fcn.004091d0
cmp dword [edi], 0
jne 0x409fd4
inc ebx
add esi, 0xc
mov eax, dword [esp + 0x58]
cmp eax, ebx
jne 0x409d2c
test eax, eax
je 0x409fee
mov eax, dword [esp + 0x64]
lea esi, [eax + 8]
xor ebx, ebx
mov edi, dword [esp]
jmp 0x409f2c
mov dword [esp + 0x10], str.Incorrect_icon_cursor_ResType_field__should_be
mov dword [esp + 0x18], eax
mov word [esp + 0x20], 0xa03
lea eax, [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0x41f1b5
mov word [esp + 0x34], 0x302
call fcn.0041cbd2
mov edi, eax
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], 0x16
sub esp, 0xc
movsd xmm0, qword [esp + 0x68]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x30]
mov dword [esp], eax
mov ecx, ebx
call fcn.0041c9a4
mov dword [esi], ebx
mov dword [esp + 0xa8], 0x41f6e4
mov edi, dword [esp + 0xb4]
test edi, edi
je 0x409edf
mov eax, 0xffffffff
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x409edf
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, edi
call fcn.0041cbd8
mov ebx, dword [esp + 0x70]
movzx eax, byte [esp + 0x74]
mov dword [esp + 0x70], 0
test al, 1
test ebx, ebx
jne 0x409aa0
jmp 0x409aa7
mov eax, dword [esp + 0x54]
mov word [esi - 8], ax
mov eax, dword [esp + 0x78]
mov word [esi - 6], ax
movss dword [esi - 4], xmm0
mov eax, dword [esp + 8]
mov dword [esi], eax
inc ebx
add esi, 0xc
cmp dword [esp + 0x58], ebx
mov edx, dword [esp + 0x68]
je 0x40a006
mov eax, dword [esi]
movzx ecx, word [esi - 8]
cmp dword [esp + 0x7c], 0
je 0x409f4b
mov dword [esp + 0x54], ecx
mov dword [esp + 8], eax
movzx eax, word [esi - 6]
mov dword [esp + 0x78], eax
jmp 0x409f65
mov edx, ecx
shr edx, 7
and edx, 0xfffffffe
mov dword [esp + 0x78], edx
add eax, 4
mov dword [esp + 8], eax
movzx ecx, cl
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 4]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov ecx, edi
push 0x28
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0041ca0a
cmp dword [edi], 0
jne 0x409fff
mov eax, dword [esp + 0x24]
mov dword [edi], 0
cmp dword [eax], 0x28
movaps xmm0, xmmword [0x41ee60]
jne 0x409eff
movss xmm0, dword [eax + 0xc]
jmp 0x409eff
mov esi, eax
jmp 0x40a0ed
mov esi, dword [esp]
jmp 0x40a0ed
mov esi, edi
lea edi, [esp + 0x24]
mov eax, dword [esp + 0x50]
mov ebx, ecx
mov edx, dword [esp + 0x68]
jmp 0x40a015
mov esi, dword [esp]
lea edi, [esp + 0x24]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x68]
jmp 0x40a011
mov esi, edi
jmp 0x40a0ed
mov esi, dword [esp]
lea edi, [esp + 0x24]
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x64]
mov word [esp + 0x34], 0x1030
mov dword [esp + 0x24], 0x41f6a8
mov dword [esp + 0x38], eax
mov eax, dword [edx]
mov dword [esp + 0x3c], eax
movzx eax, word [edx + 4]
mov word [esp + 0x40], ax
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
movzx eax, byte [esp + 0xa0]
mov byte [esp + 0x30], al
movsd xmm0, qword [esp + 0x98]
movsd qword [esp + 0x28], xmm0
mov eax, dword [ebp + 0xc]
test byte [eax + 0x10], 0x40
je 0x40a08e
mov word [esp + 0x34], 0x1050
mov dword [esp + 0x5c], 0x40bf40
mov dword [esp + 0x60], 0
sub esp, 0x10
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov ecx, esi
call fcn.004091d0
cmp dword [esi], 0
jne 0x40a0c9
mov dword [esi], 0
mov dword [esp + 0x24], 0x41f6a8
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40a0e6
mov dword [esp + 0x48], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
cmp dword [esp + 4], 0
je 0x40a0f9
push dword [esp + 4]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409ead
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x409ead
lea ecx, [esp + 0x10]
call fcn.0040eda0
call fcn.00405ed0
int3