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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov esi, dword [ebp + 0xc]
push esi
call fcn.0041ba80
add esp, 4
mov cl, byte [esi + 0x2c]
cmp eax, 0xff
mov ebx, 0xff
lea esi, [esp + 0x3c]
mov dword [esp + 0x30], 4
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
cmovb ebx, eax
test ebx, ebx
mov byte [esp + 0x17], cl
jne 0x41ce0e
lea edi, [esp + 0x30]
lea eax, [esp + 0x17]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
push esi
push edi
push eax
call fcn.0041d500
add esp, 0xc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
test ebx, ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0xa0], ecx
mov ecx, esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x30], 4
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x44], 0
jne 0x41ce40
push ecx
push edi
mov dword [esp + 0x18], ebx
push ebx
push 0
call fcn.0041d610
add esp, 0x10
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x30]
mov edx, dword [esp + 0x40]
test esi, esi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xb8], eax
movsd qword [esp + 0xb0], xmm0
mov dword [esp + 0x90], edx
mov dword [esp + 0x2c], ecx
je 0x41c6ba
mov ecx, 0x28
mov eax, esi
mul ecx
jo 0x41ce7a
mov edi, eax
test eax, eax
js 0x41ce7a
push 4
push edi
call fcn.00406c70
add esp, 8
test eax, eax
je 0x41ce93
lea edi, [esp + 0x30]
jmp 0x41c6bf
mov eax, 4
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x70], eax
lea edx, [esp + 0x88]
lea eax, [esp + 0x70]
mov dword [esp + 0x88], 0
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], 0
lea ecx, [ebx + esi*8]
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
push eax
push edi
call fcn.0041d6f0
add esp, 8
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41c76c
mov esi, edi
shl esi, 6
push 0x40
push esi
call fcn.00406c70
add esp, 8
test eax, eax
je 0x41ce98
mov esi, edi
mov edi, eax
mov dword [esp + 0x1c], eax
nop word cs:[eax + eax]
nop dword [eax]
call fcn.0040fbb0
mov dword [edi], 0
mov word [edi + 4], 0
mov dword [edi + 8], eax
add edi, 0x40
dec esi
jne 0x41c750
jmp 0x41c774
mov dword [esp + 0x1c], 0x40
push 4
push 0x2f8
call fcn.00406c70
add esp, 8
test eax, eax
je 0x41ce81
mov edi, eax
push 0x2f8
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0xb8]
movsd xmm0, qword [esp + 0xb0]
mov dword [esp + 0x3b], eax
mov eax, dword [ebp + 0xc]
movsd qword [esp + 0x33], xmm0
movsd xmm2, qword [esp + 0x30]
movsd xmm1, qword [eax + 0x1c]
movsd xmm0, qword [eax + 4]
mov dword [eax + 4], 0
mov dword [eax + 0x1c], 0
mov ebx, dword [eax + 0x24]
mov esi, dword [eax + 0x28]
mov dword [eax + 0x24], 0
movsd qword [esp + 0x70], xmm2
movaps xmmword [esp + 0xc0], xmm1
movsd xmm1, qword [esp + 0x37]
movaps xmmword [esp + 0xa0], xmm0
movsd qword [esp + 0x77], xmm1
push 0x40
push 0x140
call fcn.00406c70
add esp, 8
test eax, eax
je 0x41ce8a
mov ecx, dword [esp + 0x88]
movaps xmm2, xmmword [esp + 0xa0]
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], edi
mov dword [eax + 0x80], 0
mov dword [eax + 0x84], edi
mov dword [eax + 0xc0], 3
movsd xmm0, qword [esp + 0x80]
movsd xmm1, qword [esp + 0x77]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0xc]
mov dword [eax + 0xd0], ecx
mov ecx, dword [esp + 0x1c]
movsd qword [eax + 0xc8], xmm0
mov dword [eax + 0xd4], 3
unpcklpd xmm2, xmmword [esp + 0xc0]
movsd xmm0, qword [esp + 0x70]
mov dword [eax + 0xdc], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xe0], ecx
mov dword [eax + 0xe4], ecx
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov byte [eax + 0xf0], 0
movsd qword [eax + 0xf1], xmm0
movsd qword [eax + 0xf8], xmm1
movaps xmmword [eax + 0x100], xmm2
mov dword [eax + 0x110], ebx
mov dword [eax + 0x114], esi
mov dword [eax + 0x118], 1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
shl eax, 4
cmp dword [esp + 0x20], 0
lea edx, [edi + ecx*8]
lea esi, [ebx + eax]
mov dword [esp + 0x6c], edx
je 0x41cb40
lea edx, [ecx*8 - 8]
mov dword [esp + 0x68], esi
shl ecx, 3
mov ebx, 0x10
xor edi, edi
xor esi, esi
mov dword [esp + 0x94], edx
mov edx, 0x10
mov dword [esp + 0x2c], ecx
sub edx, eax
mov dword [esp + 0x20], edx
nop
mov eax, dword [esp + 0x18]
movzx edx, byte [eax + edi*2 + 0xc]
cmp dl, 2
je 0x41cb07
movsd xmm0, qword [eax + edi*2]
mov ecx, eax
mov eax, dword [eax + edi*2 + 8]
cmp dword [esp + 0x2c], edi
mov byte [esp + 0x1c], dl
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], eax
movsd qword [esp + 0x30], xmm0
mov byte [esp + 0x3c], dl
lea edx, [esp + 0x3d]
movzx eax, word [ecx + edi*2 + 0xd]
movzx ecx, byte [ecx + edi*2 + 0xf]
mov word [edx], ax
mov byte [edx + 2], cl
je 0x41cb1a
mov eax, dword [esp + 0xc]
mov esi, dword [ebp + 0xc]
movsd xmm0, qword [esp + 0x30]
mov ecx, dword [eax + edi]
movzx eax, byte [eax + edi + 4]
movsd qword [esp + 0x80], xmm0
mov byte [esp + 0xa0], al
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x88], eax
movzx eax, word [edx]
mov word [esp + 0x28], ax
movzx eax, byte [edx + 2]
mov byte [esp + 0x2a], al
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41ca10
mov ecx, dword [esi + 0x10]
push dword [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
call dword [ecx + 0x10]
add esp, 0xc
jmp 0x41ca18
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
lock inc dword [eax]
jle 0x41ce76
mov esi, eax
mov eax, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x80]
mov dword [esp + 0x78], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x88]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x3d]
mov dword [esp + 0x40], edx
movsd qword [esp + 0x70], xmm0
movsd qword [ecx + 7], xmm1
mov dword [ecx + 0xf], eax
movzx eax, byte [esp + 0x1c]
mov byte [esp + 0x50], al
movzx eax, word [esp + 0x28]
mov word [ecx + 0x14], ax
movzx eax, byte [esp + 0x2a]
mov byte [ecx + 0x16], al
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x54], eax
movzx eax, byte [esp + 0xa0]
and al, 1
mov byte [esp + 0x58], al
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x60], esi
sub esp, 0xc
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xa4]
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.0041c2a0
add esp, 0xc
cmp byte [esp + 0x98], 4
jne 0x41cb6e
mov eax, dword [esp + 0x20]
add edi, 8
add ebx, 0x10
inc esi
add eax, 0x10
cmp eax, 0x10
mov dword [esp + 0x20], eax
jne 0x41c950
mov esi, dword [esp + 0x68]
add edi, dword [esp + 0xc]
mov ebx, esi
sub esi, ebx
jne 0x41cb48
jmp 0x41ccab
add edi, dword [esp + 0xc]
mov esi, dword [esp + 0x68]
add ebx, eax
sub esi, ebx
jne 0x41cb48
jmp 0x41ccab
mov eax, dword [esp + 0x30]
add ebx, dword [esp + 0x18]
lock dec dword [eax]
mov esi, dword [esp + 0x68]
jne 0x41cc9f
lea eax, [esp + 0x30]
push eax
call fcn.00407c70
add esp, 4
mov edi, dword [esp + 0x6c]
sub esi, ebx
je 0x41ccab
shr esi, 4
shl esi, 4
jmp 0x41cb5c
add ebx, 0x10
add esi, 0xfffffff0
je 0x41ccab
mov eax, dword [ebx]
lock dec dword [eax]
jne 0x41cb50
push ebx
call fcn.00407c70
add esp, 4
jmp 0x41cb50
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x98]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x9c]
test esi, esi
mov dword [edx + 8], ecx
mov dword [edx + 4], eax
mov dword [edx], 1
je 0x41cbba
add ebx, dword [esp + 0x18]
neg esi
and esi, 0xfffffff0
jmp 0x41cba8
add ebx, 0x10
add esi, 0xfffffff0
je 0x41cbba
mov eax, dword [ebx]
lock dec dword [eax]
jne 0x41cba0
push ebx
call fcn.00407c70
add esp, 4
jmp 0x41cba0
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x41cbdb
mov ecx, 0x10
mul ecx
push 4
push eax
push dword [esp + 0x20]
call fcn.00406c80
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x94]
add eax, 0xfffffff8
cmp eax, edi
jne 0x41cddc
mov eax, dword [esp + 0x90]
test eax, eax
je 0x41cc12
mov ecx, 8
mul ecx
push 4
push eax
push dword [esp + 0x14]
call fcn.00406c80
add esp, 0xc
mov eax, dword [esp + 0x24]
lock dec dword [eax + 0x118]
jne 0x41cc73
mov ecx, eax
mov eax, dword [eax + 0xd0]
test eax, eax
je 0x41cc73
mov esi, dword [ecx + 0xc8]
add ecx, 0x40
shl eax, 3
xor ebx, ebx
add ecx, 0x94
lea edi, [eax + eax*4]
mov dword [esp + 0x10], ecx
add esi, 0x1c
jmp 0x41cc59
add esi, 0x28
inc ebx
add edi, 0xffffffd8
je 0x41cc73
lock dec dword [esi]
jne 0x41cc50
mov eax, 3
mov edx, ebx
xchg dword [esi - 4], eax
mov ecx, dword [esp + 0x10]
call fcn.0041d8c0
jmp 0x41cc50
mov eax, dword [esp + 0x24]
lock dec dword [eax]
jne 0x41cc89
lea eax, [esp + 0x24]
push eax
call fcn.0041e190
add esp, 4
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [esi + 4]
test eax, eax
jne 0x41cd35
jmp 0x41cd57
mov edi, dword [esp + 0x6c]
sub esi, ebx
jne 0x41cb48
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x41cccc
mov ecx, 0x10
mul ecx
push 4
push eax
push dword [esp + 0x20]
call fcn.00406c80
add esp, 0xc
mov esi, dword [esp + 0x6c]
sub esi, edi
je 0x41ccfa
shr esi, 3
shl esi, 3
jmp 0x41cce8
add edi, 8
add esi, 0xfffffff8
je 0x41ccfa
mov eax, dword [edi]
lock dec dword [eax]
jne 0x41cce0
push edi
call fcn.00407c70
add esp, 4
jmp 0x41cce0
mov eax, dword [esp + 0x90]
test eax, eax
je 0x41cd1b
mov ecx, 8
mul ecx
push 4
push eax
push dword [esp + 0x14]
call fcn.00406c80
add esp, 0xc
mov eax, dword [esp + 0x24]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov dword [edi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41cd57
mov ecx, dword [esi + 8]
push eax
call dword [ecx]
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41cd57
push dword [eax + 8]
push ecx
push dword [esi + 4]
call fcn.00406c80
add esp, 0xc
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41cd80
mov ecx, dword [esi + 0x10]
push eax
call dword [ecx]
add esp, 4
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41cd80
push dword [eax + 8]
push ecx
push dword [esi + 0xc]
call fcn.00406c80
add esp, 0xc
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x41cda9
mov ecx, dword [esi + 0x20]
push eax
call dword [ecx]
add esp, 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41cda9
push dword [eax + 8]
push ecx
push dword [esi + 0x1c]
call fcn.00406c80
add esp, 0xc
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41cdd2
mov ecx, dword [esi + 0x28]
push eax
call dword [ecx]
add esp, 4
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41cdd2
push dword [eax + 8]
push ecx
push dword [esi + 0x24]
call fcn.00406c80
add esp, 0xc
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0xc]
sub ebx, edi
and ebx, 0xfffffff8
lea esi, [eax + edi + 8]
jmp 0x41cdfc
add esi, 8
add ebx, 0xfffffff8
je 0x41cbf1
mov eax, dword [esi]
lock dec dword [eax]
jne 0x41cdf0
push esi
call fcn.00407c70
add esp, 4
jmp 0x41cdf0
lea eax, [esp + 0x30]
push ebx
push 0
push eax
call fcn.0047e1f0
add esp, 0xc
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
sub ecx, eax
cmp ecx, ebx
jae 0x41c5ab
push ebx
push eax
push esi
call fcn.0047da40
add esp, 0xc
jmp 0x41c5ab
push ebx
push 0
push edi
call fcn.0047e1f0
add esp, 0xc
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
sub ecx, eax
cmp ecx, ebx
lea ecx, [esp + 0x3c]
jae 0x41c63e
push ebx
push eax
push ecx
call fcn.0047da40
lea ecx, [esp + 0x48]
add esp, 0xc
jmp 0x41c63e
ud2
call fcn.00473a80
ud2
push 4
push 0x2f8
jmp 0x41ce9b
push 0x40
push 0x140
jmp 0x41ce9b
push 4
push edi
jmp 0x41ce9b
push 0x40
push esi
call fcn.004804a0
add esp, 8
ud2