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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1e0
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, edx
mov byte [esp + 3], 1
mov byte [esp + 2], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov ebx, esi
mov al, byte [esp + 2]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], edi
and byte [esp + 3], al
cmp ebx, 0x15
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
jb 0x41f6e7
cmp dword [esp + 0x18], 0
je 0x41f704
test byte [esp + 2], 1
jne 0x41f2d4
lea eax, [ebx - 1]
mov esi, ebx
bsr ecx, eax
xor eax, eax
dec eax
not ecx
shr eax, cl
mov dword [esp + 0x10], eax
mov eax, ebx
shr eax, 2
lea edi, [eax + eax - 1]
push 3
pop ebx
sub ebx, 1
jb 0x41f2c8
mov eax, esi
mov dword [esp + 8], edi
mov edi, dword [esp + 0xc]
mov edx, 0
shl eax, 0xd
xor eax, esi
mov ecx, eax
shr ecx, 0x11
xor ecx, eax
mov esi, ecx
shl esi, 5
xor esi, ecx
mov ecx, edi
mov eax, esi
and eax, dword [esp + 0x10]
cmp eax, edi
cmovb ecx, edx
mov edx, edi
mov edi, dword [esp + 8]
sub eax, ecx
mov ecx, dword [esp + 4]
push eax
push edi
call fcn.0041edf2
pop eax
pop ecx
inc edi
jmp 0x41f27c
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 4]
dec dword [esp + 0x18]
mov eax, ebx
mov edx, dword [ebp + 8]
and dword [esp + 0x40], 0
shr eax, 2
cmp ebx, 0x31
lea ecx, [eax + eax]
mov dword [esp + 0x28], eax
lea eax, [eax + eax*2]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x160], ecx
jbe 0x41f355
lea esi, [esp + 0x160]
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.0041ecd6
mov ecx, esi
lea edx, [esp + 0x20]
call fcn.0041ecd6
mov ecx, esi
lea edx, [esp + 0x2c]
call fcn.0041ecd6
mov ecx, dword [esp + 0x160]
lea eax, [esp + 0x2c]
lea edx, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0041eca4
pop eax
pop ecx
mov eax, dword [esp + 0x40]
cmp eax, 0xb
ja 0x41f382
mov ecx, dword [esp + 0x20]
test eax, eax
sete al
mov dword [esp + 0x10], ecx
jmp 0x41f3f7
mov esi, ebx
imul eax, ebx, 0xd0
mov ebx, edi
shr esi, 1
lea edi, [edi + eax - 0xd0]
sub esi, 1
jb 0x41f3e7
mov eax, 0xd0
push eax
push ebx
lea eax, [esp + 0x98]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0xd0
push eax
push edi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0xd0
push eax
lea eax, [esp + 0x94]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0xd0
add edi, 0xffffff30
add ebx, eax
jmp 0x41f395
mov eax, dword [esp + 0x20]
not eax
add eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov al, 1
test byte [esp + 3], al
je 0x41f498
mov eax, dword [esp + 4]
xor esi, esi
mov dword [esp + 8], 0
inc esi
lea edi, [eax + 0x78]
mov eax, dword [esp + 8]
cmp eax, 5
je 0x41f498
mov ebx, dword [esp + 0xc]
inc eax
mov dword [esp + 8], eax
imul eax, esi, 0xd0
add eax, edi
cmp esi, ebx
jae 0x41f44c
mov ecx, dword [eax]
mov edx, dword [eax + 4]
cmp ecx, dword [eax - 0xd0]
sbb edx, dword [eax - 0xcc]
jb 0x41f44c
inc esi
add eax, 0xd0
jmp 0x41f42d
cmp ebx, 0x32
jb 0x41f490
cmp esi, ebx
je 0x41f490
mov ecx, dword [esp + 4]
mov edx, ebx
lea ebx, [esi - 1]
push esi
push ebx
call fcn.0041edf2
pop eax
pop ecx
cmp esi, 2
jb 0x41f413
cmp esi, dword [esp + 0xc]
ja 0x41f784
mov ecx, dword [esp + 4]
mov edx, esi
push ebx
call fcn.0041eebd
pop eax
mov ecx, dword [esp + 4]
mov edx, esi
call fcn.0041eff2
jmp 0x41f413
cmp esi, ebx
je 0x41f6fc
cmp dword [esp + 0x1c], 0
je 0x41f647
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
cmp ebx, edi
jae 0x41f784
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 4]
imul esi, ebx, 0xd0
mov eax, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x7c]
cmp eax, dword [edx + esi + 0x78]
sbb ecx, dword [edx + esi + 0x7c]
jb 0x41f655
add esi, edx
mov edi, 0xd0
push edi
push edx
lea eax, [esp + 0x98]
push eax
mov ebx, edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push edi
push esi
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push edi
lea eax, [esp + 0x94]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebx + edi]
mov edx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
lea ebx, [eax - 1]
push 0x1e
pop ecx
lea edi, [esp + 0x160]
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [ecx + 0x7c]
mov edx, dword [edx + 0x78]
lea esi, [ecx + 0x80]
mov dword [esp + 8], eax
mov eax, ecx
push 0x14
pop ecx
lea edi, [esp + 0x40]
mov dword [esp + 0x3c], esi
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x148]
mov dword [esp + 0x38], ecx
xor esi, esi
imul eax, esi, 0xd0
add eax, ecx
cmp esi, ebx
jae 0x41f577
cmp edx, dword [eax]
mov ecx, dword [esp + 8]
sbb ecx, dword [eax + 4]
jb 0x41f577
inc esi
add eax, 0xd0
jmp 0x41f560
imul eax, ebx, 0xd0
add eax, dword [esp + 0x10]
dec ebx
cmp esi, ebx
jae 0x41f5fe
cmp edx, dword [eax - 0x58]
mov ecx, dword [esp + 8]
lea edi, [eax - 0xd0]
sbb ecx, dword [eax - 0x54]
mov eax, edi
jb 0x41f581
mov dword [esp + 0x24], esi
mov eax, 0xd0
imul esi, dword [esp + 0x24], 0xd0
add esi, dword [esp + 0x10]
push eax
push esi
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x40], edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0xd0
push eax
push edi
push esi
mov esi, dword [esp + 0x30]
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, 0xd0
push eax
lea eax, [esp + 0x94]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x40]
add esp, 0xc
mov ecx, dword [esp + 0x38]
inc esi
jmp 0x41f558
push 0x1e
pop ecx
mov ebx, edx
mov edx, dword [esp + 4]
mov eax, esi
lea esi, [esp + 0x160]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [edx + 0x78], ebx
mov ecx, dword [esp + 8]
mov dword [edx + 0x7c], ecx
push 0x14
pop ecx
mov edi, dword [esp + 0x3c]
lea esi, [esp + 0x40]
inc eax
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0xc]
sub ebx, eax
jb 0x41f784
imul eax, eax, 0xd0
add edx, eax
mov edi, edx
jmp 0x41f23a
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x41f659
mov esi, edi
mov ecx, edx
mov edi, ecx
mov edx, esi
push ebx
call fcn.0041f786
pop ecx
mov ebx, esi
mov ecx, esi
mov byte [esp + 3], dl
sub ebx, eax
cmp eax, ebx
cmovb ebx, eax
shr ecx, 3
cmp ebx, ecx
setae byte [esp + 2]
sub esi, eax
jb 0x41f784
je 0x41f784
imul ebx, eax, 0xd0
dec esi
mov dword [esp + 0x14], eax
add ebx, edi
cmp eax, esi
lea ecx, [ebx + 0xd0]
jb 0x41f6bd
mov edx, esi
push dword [esp + 0x18]
push ebx
push dword [ebp + 8]
call fcn.0041f1fd
add esp, 0xc
mov ebx, dword [esp + 0x14]
jmp 0x41f22a
mov edx, dword [esp + 0x14]
mov dword [esp + 8], ecx
mov ecx, edi
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [ebp + 8]
call fcn.0041f1fd
mov edi, dword [esp + 0x14]
add esp, 0xc
mov dword [esp + 0x1c], ebx
jmp 0x41f228
cmp ebx, 1
jbe 0x41f6fc
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
push 1
call fcn.0041eebd
pop eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
shr esi, 1
dec esi
cmp esi, 0xffffffff
je 0x41f71b
mov ecx, edi
mov edx, ebx
push esi
call fcn.0041fc90
pop eax
jmp 0x41f708
imul eax, ebx, 0xd0
lea esi, [edi + eax - 0xd0]
mov edi, dword [esp + 4]
cmp ebx, 2
jb 0x41f6fc
dec ebx
mov eax, 0xd0
push eax
push edi
lea eax, [esp + 0x98]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0xd0
push eax
push esi
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, 0xd0
push eax
lea eax, [esp + 0x94]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, edi
mov edx, ebx
push 0
call fcn.0041fc90
pop eax
add esi, 0xffffff30
jmp 0x41f72c
ud2