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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x2e8
test edx, edx
je 0x41fc8e
mov eax, dword [ebp + 8]
cmp eax, edx
jae 0x41fc8e
imul esi, eax, 0xd0
mov edi, 0xd0
lea eax, [esp + 0x48]
mov dword [esp + 0x28], edx
mov ebx, ecx
add esi, ecx
push edi
push ecx
push eax
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 + 0x4c]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x28]
add edi, ebx
mov dword [esp + 4], edi
dec eax
push 0x1e
pop ecx
lea edi, [esp + 0x168]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x80]
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x78]
mov dword [esp + 0x14], ecx
push 0x14
pop ecx
lea edi, [esp + 0x118]
mov dword [esp + 0x40], esi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ecx, [ebx + 0x148]
mov edi, edx
mov dword [esp + 0x30], ebx
xor esi, esi
cmp eax, esi
je 0x41f845
mov edx, dword [ecx + 4]
cmp dword [ecx], edi
sbb edx, dword [esp + 0x14]
jae 0x41f847
inc esi
add ecx, 0xd0
jmp 0x41f82d
mov esi, eax
imul ecx, dword [esp + 0x28], 0xd0
mov edx, dword [esp + 0x30]
lea ecx, [ecx + edx - 0x58]
mov edx, eax
cmp esi, eax
jae 0x41f871
mov eax, dword [ecx + 4]
cmp dword [ecx], edi
lea ecx, [ecx - 0xd0]
sbb eax, dword [esp + 0x14]
lea eax, [edx - 1]
jae 0x41f857
cmp esi, edx
mov dword [esp + 0x2c], edi
ja 0x41fc8e
mov edi, dword [esp + 4]
imul eax, esi, 0xd0
imul ecx, edx, 0xd0
mov dword [esp + 0x38], edx
xor ebx, ebx
mov dword [esp + 0x1c], 0x80
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 0x18], 0x80
mov dword [esp + 0x3c], esi
add eax, edi
add ecx, edi
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, ecx
mov dword [esp + 0x20], eax
sub eax, edx
mov dword [esp + 4], edx
cmp eax, 0xd0d0
mov dword [esp + 0x44], eax
jae 0x41f93e
xor edx, edx
mov cx, 0xd0
mov edi, ebx
div cx
mov ebx, dword [esp]
mov edx, dword [esp + 8]
movzx eax, ax
mov esi, eax
cmp edi, ebx
setb cl
cmp edx, dword [esp + 0x10]
setb dl
or dl, cl
lea ecx, [eax - 0x80]
test dl, dl
cmovne esi, ecx
cmp edi, ebx
mov ebx, edi
mov edi, dword [esp + 0x1c]
cmovb edi, ecx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
cmovae edi, esi
mov esi, dword [esp + 0x14]
test dl, dl
mov dword [esp + 0x18], edi
jne 0x41f942
mov ecx, eax
shr ecx, 1
sub eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x41f942
mov esi, dword [esp + 0x14]
cmp ebx, dword [esp]
jne 0x41f983
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
lea edx, [esp + 0x1e4]
mov dword [esp], edx
cmp dword [esp + 0x18], ecx
je 0x41f97c
mov edx, dword [eax + 0x7c]
cmp dword [eax + 0x78], ebx
sbb edx, esi
mov edx, dword [esp]
mov byte [edx], cl
sbb edx, 0xffffffff
inc ecx
add eax, 0xd0
mov dword [esp], edx
jmp 0x41f95b
lea ebx, [esp + 0x1e4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp eax, ecx
jne 0x41f9ce
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
xor ecx, ecx
lea ebx, [esp + 0x264]
add eax, 0xffffffa8
cmp dword [esp + 0x1c], ecx
je 0x41f9c1
mov edi, dword [esp + 0x2c]
mov edx, dword [eax + 4]
mov byte [ebx], cl
inc ecx
cmp dword [eax], edi
sbb edx, esi
adc ebx, 0
add eax, 0xffffff30
jmp 0x41f9a3
mov ecx, ebx
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x264]
mov edx, dword [esp]
mov esi, eax
mov edi, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], esi
mov eax, edx
sub eax, ebx
mov ebx, ecx
sub ebx, esi
cmp eax, ebx
cmovb ebx, eax
test ebx, ebx
je 0x41faac
movzx eax, byte [edi]
mov esi, ebx
mov ebx, 0xd0
imul eax, eax, 0xd0
add eax, dword [esp + 4]
push ebx
push eax
lea eax, [esp + 0x50]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
dec esi
mov cl, byte [edi]
inc edi
mov dword [esp + 0x34], esi
mov esi, dword [esp + 8]
mov dword [esp + 0xc], edi
movzx eax, byte [esi]
not eax
imul edi, eax, 0xd0
movzx eax, cl
imul eax, eax, 0xd0
add edi, dword [esp + 0x20]
add eax, dword [esp + 4]
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x34]
mov ecx, 0xd0
sub eax, 1
jb 0x41fa8f
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x34], eax
movzx eax, byte [ebx]
mov dword [esp + 8], eax
imul eax, eax, 0xd0
add eax, dword [esp + 4]
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc ebx
inc esi
mov dword [esp + 0xc], ebx
mov ebx, 0xd0
jmp 0x41fa25
push 0xd0
lea ebx, [esp + 0x4c]
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
inc esi
jmp 0x41fab4
mov esi, dword [esp + 8]
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0xc]
mov eax, 0
mov dword [esp + 8], esi
mov edi, 0
cmp ebx, edx
mov edx, dword [esp + 4]
cmove eax, dword [esp + 0x18]
imul eax, eax, 0xd0
add edx, eax
mov eax, dword [esp + 0x1c]
neg eax
cmp esi, ecx
mov esi, dword [esp + 0x20]
cmovne eax, edi
imul eax, eax, 0xd0
add esi, eax
cmp dword [esp + 0x44], 0xd0d0
mov eax, esi
jae 0x41f8ca
cmp ebx, dword [esp]
jae 0x41fb70
mov ecx, dword [esp]
mov esi, eax
mov dword [esp + 4], edx
cmp ebx, ecx
jae 0x41fbdc
movzx eax, byte [ecx - 1]
mov ebx, esi
dec ecx
add ebx, 0xffffff30
mov dword [esp], ecx
imul edi, eax, 0xd0
mov eax, 0xd0
add edi, dword [esp + 4]
push eax
push edi
lea esi, [esp + 0x50]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0xd0
push eax
push ebx
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, 0xd0
push eax
push esi
mov esi, ebx
push ebx
mov ebx, dword [esp + 0x18]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0xc]
add esp, 0xc
jmp 0x41fb0e
mov ebx, dword [esp + 0x10]
cmp dword [esp + 8], ebx
jae 0x41fbde
mov esi, edx
mov dword [esp + 0x20], eax
cmp dword [esp + 8], ebx
jae 0x41fbe4
movzx eax, byte [ebx - 1]
dec ebx
mov dword [esp + 0x10], ebx
not eax
imul edi, eax, 0xd0
mov eax, 0xd0
add edi, dword [esp + 0x20]
push eax
push esi
lea ebx, [esp + 0x50]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0xd0
push eax
push edi
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, 0xd0
push eax
push ebx
mov ebx, dword [esp + 0x18]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0xd0
add esi, eax
jmp 0x41fb80
mov edx, esi
mov eax, dword [esp + 0x24]
jmp 0x41fbea
mov eax, dword [esp + 0x24]
mov edx, esi
sub edx, eax
mov ecx, 0xd0
mov eax, edx
xor edx, edx
div ecx
mov edx, eax
push 0x1e
pop ecx
mov ebx, dword [esp + 0x30]
lea esi, [esp + 0x168]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x78], ecx
add edx, eax
push 0x14
pop ecx
mov edi, dword [esp + 0x40]
cmp edx, dword [esp + 0x28]
lea esi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
jae 0x41fc8e
cmp eax, dword [esp + 0x38]
mov eax, 0xd0
setae byte [esp + 4]
imul esi, edx, 0xd0
add esi, ebx
push eax
push ebx
lea edi, [esp + 0x50]
push edi
mov dword [esp + 0x18], edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, 0xd0
push eax
push esi
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, 0xd0
push eax
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0xc]
mov dl, byte [esp + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2