Function at 0x409ed0
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 + 0x78], eax
cmove eax, edi
movsd xmm0, qword [eax + 0x14]
sete byte [esp + 8]
movsd qword [esp + 0x80], xmm0
lea ecx, [esp + 0x80]
lea edx, [esp + 0x6f]
call fcn.00408ae0
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.00408b90
movzx eax, byte [esp + 0x74]
test al, 1
jne 0x40a03d
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.0041bc3a
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
lea edi, [esp + 0x34]
mov ecx, esi
push 6
push edi
push ebx
call fcn.0041bc34
cmp dword [esi], 0
jne 0x40a468
mov edx, dword [esp + 0x34]
mov dword [esi], 0
cmp word [edx], 0
je 0x40a064
mov dword [esp + 0x34], str.Incorrect_icon_cursor_Reserved_field__should_be_0.
mov word [esp + 0x44], 0x103
call fcn.0041bdf0
mov edi, eax
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x16
sub esp, 0xc
movsd xmm0, qword [esp + 0x24]
jmp 0x40a452
mov ecx, dword [esp + 0x70]
mov dword [esi], ecx
mov dword [esp + 0x70], 0
test al, 1
test ebx, ebx
je 0x40a058
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]
xor ebx, ebx
cmp dword [esp + 0x78], 1
mov eax, 0
adc eax, 1
cmp eax, ecx
jne 0x40a400
xor eax, eax
movzx ecx, byte [esp + 8]
mov al, cl
movzx ecx, word [edx + 4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 8], 0
test ecx, ecx
je 0x40a5f1
mov dword [esp + 0x68], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 4], esi
mov dword [esp + 0x10], 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 + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
lea edi, [esp + 0x34]
push esi
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
push esi
mov esi, dword [esp + 8]
push 0
mov dword [esp + 0x14], eax
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
nop word cs:[eax + eax]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov ecx, esi
push 0xc
push edi
lea eax, [esp + 0xb0]
push eax
call fcn.0041bc34
cmp dword [esi], 0
jne 0x40a5a0
mov ecx, dword [esp + 0x34]
mov dword [esi], 0
cmp ebx, dword [esp + 0x20]
je 0x40a16d
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
movsd xmm0, qword [ecx]
movsd qword [ebx], xmm0
add ebx, 0xc
mov dword [esp + 0x1c], ebx
mov dword [esp + 8], ebx
jmp 0x40a25d
mov esi, dword [esp + 0x18]
mov eax, ebx
sub eax, esi
sar eax, 2
imul edx, eax, 0xaaaaaaab
lea edi, [edx + 1]
cmp edi, 0x15555556
jae 0x40a6ed
lea eax, [edx + edx]
cmp eax, edi
cmova edi, eax
cmp edx, 0xaaaaaaa
mov eax, 0x15555555
cmovae edi, eax
test edi, edi
mov dword [esp + 8], ecx
je 0x40a1d4
mov dword [esp + 0x30], edx
cmp edi, 0x15555556
jae 0x40a6f6
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 + 0x30]
jmp 0x40a1d6
xor eax, eax
lea ecx, [edx + edx*2]
mov edx, dword [esp + 8]
mov edx, dword [edx + 8]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 8]
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
mov dword [esp + 8], ecx
je 0x40a240
nop dword [eax + eax]
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 0x40a210
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
test ebx, ebx
jne 0x40a24c
jmp 0x40a255
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
push ebx
call sub.libc.dll_operator_delete_void_
add esp, 4
mov esi, dword [esp + 4]
lea edi, [esp + 0x34]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov ecx, esi
push 4
push edi
lea eax, [esp + 0xb0]
push eax
call fcn.0041bc34
cmp dword [esi], 0
mov ebx, dword [esp + 0xc]
jne 0x40a6ca
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0xb8]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi]
mov esi, dword [esp + 4]
dec eax
cmp eax, 2
mov eax, ecx
bswap eax
cmovb eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + ecx*4], eax
mov eax, ecx
mov dword [esi], 0
inc eax
mov ebx, dword [esp + 8]
cmp eax, dword [esp + 0x10]
jne 0x40a110
cmp dword [esp + 0x10], 0
je 0x40a5b6
mov esi, dword [esp + 0x18]
add esi, 8
xor ebx, ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 0
mov edx, dword [esi]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, 0
test edx, edx
je 0x40a33f
mov ecx, dword [esp + 4]
mov edi, edx
push edx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0041bc34
mov eax, dword [esp + 4]
cmp dword [eax], 0
jne 0x40a5a9
mov eax, dword [esp + 0x34]
mov edx, edi
mov dword [esp + 0x14], eax
mov edi, dword [esp + 4]
mov dword [edi], 0
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + 0x10]
mov word [esp + 0x44], cx
lea ecx, [esi - 8]
mov dword [esp + 0x34], 0x41e498
mov eax, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0x74]
add eax, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov byte [esp + 0x40], 1
mov dword [esp + 0x60], 0x40c3a0
mov dword [esp + 0x64], 0
sub esp, 0x10
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 8], xmm0
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov ecx, edi
call fcn.00409780
cmp dword [edi], 0
jne 0x40a5a9
inc ebx
add esi, 0xc
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x40a2df
test eax, eax
mov edx, dword [esp + 0x68]
je 0x40a5c8
lea eax, [eax + eax*2]
mov dword [esp + 0x7c], eax
xor ebx, ebx
mov eax, dword [esp + 0xc]
jmp 0x40a4f5
mov dword [esp + 0x18], str.Incorrect_icon_cursor_ResType_field__should_be
mov dword [esp + 0x20], eax
mov word [esp + 0x28], 0x903
lea eax, [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 0x41dff5
mov word [esp + 0x44], 0x302
call fcn.0041bdf0
mov edi, eax
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], 0x16
sub esp, 0xc
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x40]
mov dword [esp], eax
mov ecx, ebx
call fcn.0041bbd4
mov dword [esi], ebx
mov dword [esp + 0xa8], 0x41e520
mov edi, dword [esp + 0xb4]
test edi, edi
je 0x40a49a
mov eax, 0xffffffff
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x40a49a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, edi
call fcn.0041bdf6
mov ebx, dword [esp + 0x70]
movzx eax, byte [esp + 0x74]
mov dword [esp + 0x70], 0
test al, 1
test ebx, ebx
jne 0x40a051
jmp 0x40a058
mov eax, dword [esp + 0x10]
mov word [esi + ebx*4], ax
mov eax, dword [esp + 0x30]
mov word [esi + ebx*4 + 2], ax
movss dword [esi + ebx*4 + 4], xmm0
mov eax, dword [esp + 0x14]
mov dword [esi + ebx*4 + 8], eax
add ebx, 3
mov eax, dword [esp + 8]
add eax, 4
cmp dword [esp + 0x7c], ebx
lea edi, [esp + 0x34]
mov edx, dword [esp + 0x68]
je 0x40a5dd
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + ebx*4 + 8]
movzx edx, word [esi + ebx*4]
cmp dword [esp + 0x78], 0
je 0x40a51b
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
movzx ecx, word [esi + ebx*4 + 2]
mov dword [esp + 0x30], ecx
jmp 0x40a535
mov edi, edx
shr edi, 7
and edi, 0xfffffffe
mov dword [esp + 0x30], edi
add ecx, 4
mov dword [esp + 0x14], ecx
movzx edx, dl
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov eax, dword [eax]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov edi, dword [esp + 4]
mov ecx, edi
push 0x28
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.0041bc34
cmp dword [edi], 0
jne 0x40a5d2
mov eax, dword [esp + 0x34]
mov dword [edi], 0
cmp dword [eax], 0x28
movaps xmm0, xmmword [0x41dca0]
jne 0x40a4ba
movss xmm0, dword [eax + 0xc]
jmp 0x40a4ba
mov ebx, dword [esp + 0xc]
jmp 0x40a6ca
mov esi, dword [esp + 4]
mov ebx, dword [esp + 0xc]
jmp 0x40a6ca
lea edi, [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x68]
jmp 0x40a5f1
mov esi, dword [esp + 4]
lea edi, [esp + 0x34]
jmp 0x40a5e9
mov esi, edi
mov ebx, dword [esp + 0xc]
jmp 0x40a6ca
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0xc]
mov word [esp + 0x44], 0x1030
mov dword [esp + 0x34], 0x41e4e4
mov dword [esp + 0x48], eax
mov eax, dword [edx]
mov dword [esp + 0x4c], eax
movzx eax, word [edx + 4]
mov word [esp + 0x50], ax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
movzx eax, byte [esp + 0xa0]
mov byte [esp + 0x40], al
movsd xmm0, qword [esp + 0x98]
movsd qword [esp + 0x38], xmm0
mov eax, dword [ebp + 0xc]
test byte [eax + 0x10], 0x40
je 0x40a66e
mov word [esp + 0x44], 0x1050
mov dword [esp + 0x60], 0x40c410
mov dword [esp + 0x64], 0
sub esp, 0x10
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov ecx, esi
call fcn.00409780
cmp dword [esi], 0
jne 0x40a6a9
mov dword [esi], 0
mov dword [esp + 0x34], 0x41e4e4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x40a6c6
mov dword [esp + 0x58], eax
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
test ebx, ebx
je 0x40a6d3
push ebx
call sub.libc.dll_operator_delete_void_
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a468
push eax
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x40a468
lea ecx, [esp + 0x18]
call fcn.0040f200
call fcn.00406330
int3