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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x7c], 1
jle 0x420e16
push 0
push edi
lea ecx, [edi + 0x78]
call fcn.00423e60
mov eax, dword [edi]
test eax, eax
jle 0x4209cf
mov esi, eax
lea ecx, [esi + esi*4]
shl ecx, 3
nop
mov edx, dword [edi + 8]
cmp dword [edx + ecx - 0xc], 0
jne 0x4209cf
cmp dword [edx + ecx - 8], 0
jne 0x4209cf
lea eax, [esi - 1]
sub ecx, 0x28
mov dword [edi], eax
mov esi, eax
test eax, eax
jg 0x4209b0
mov edx, dword [edi + 0x7c]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
test edx, edx
jle 0x420a02
test eax, eax
jle 0x420a02
lea esi, [edi + 8]
lea ecx, [eax + eax*4]
mov dword [ebp - 4], esi
mov eax, dword [esi]
lea ecx, [ecx - 5]
lea ecx, [eax + ecx*8]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x420a08
mov eax, dword [ecx + 0x1c]
add eax, dword [ecx + 0x18]
jmp 0x420a0d
mov dword [ebp - 0xc], ebx
lea esi, [edi + 8]
xor eax, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 1
cmp edx, 1
jle 0x420b67
mov eax, 0x18
mov dword [ebp - 0x20], eax
nop dword [eax + eax]
mov esi, dword [edi + 0x88]
add esi, eax
mov eax, dword [esi]
mov ebx, eax
test eax, eax
jle 0x420a59
mov edx, dword [esi + 8]
lea ecx, [eax + eax*4]
cmp dword [edx + ecx*8 - 0xc], 0
jne 0x420a59
cmp dword [edx + ecx*8 - 8], 0
jne 0x420a59
lea ebx, [eax - 1]
mov dword [esi], ebx
mov edx, ebx
test ebx, ebx
jle 0x420b03
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x420b07
mov edx, dword [esi + 8]
mov ecx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], 0x14
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x420a96
add ecx, 4
add edx, 4
sub dword [ebp - 0x18], 4
jae 0x420a80
xor eax, eax
jmp 0x420abd
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x420ab8
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x420ab8
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x420ab8
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x420ab8
xor eax, eax
jmp 0x420abd
sbb eax, eax
or eax, 1
mov edx, ebx
test eax, eax
jne 0x420b07
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x20], eax
jne 0x420b07
mov ebx, dword [ebp - 0x24]
cmp dword [ebx + 0x20], eax
jne 0x420b07
mov eax, dword [ebx + 0x1c]
add dword [ecx + 0x1c], eax
mov eax, dword [ebp - 8]
add eax, dword [ebx + 0x1c]
mov ecx, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi]
lea eax, [eax + eax*4]
lea eax, [eax*8 - 0x28]
push eax
lea eax, [ecx + 0x28]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
dec dword [esi]
mov edx, dword [esi]
test edx, edx
jle 0x420b16
mov eax, dword [esi + 8]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 0xffffffd8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
add ebx, edx
add eax, dword [esi + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
test edx, edx
jle 0x420b4e
mov edx, dword [esi + 8]
xor eax, eax
mov ebx, dword [ebp - 8]
mov dword [edx + eax + 0x18], ebx
lea eax, [eax + 0x28]
mov edx, dword [esi + 8]
inc ecx
add ebx, dword [edx + eax - 0xc]
cmp ecx, dword [esi]
jl 0x420b35
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
inc ecx
add eax, 0x18
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
cmp ecx, dword [edi + 0x7c]
jl 0x420a30
mov esi, dword [edi]
add esi, ebx
mov ebx, dword [edi + 4]
cmp esi, ebx
jle 0x420b97
test ebx, ebx
je 0x420b83
mov eax, ebx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, ebx
jmp 0x420b88
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, edi
push eax
call fcn.00418d40
mov ebx, dword [ebp - 0x14]
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov eax, dword [ecx]
add ebx, eax
mov esi, dword [ecx + 4]
mov dword [ebp - 0x24], eax
cmp ebx, esi
jle 0x420bd6
test esi, esi
je 0x420bbe
mov eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, esi
jmp 0x420bc3
mov ecx, 8
cmp ecx, ebx
mov eax, ebx
cmovg eax, ecx
lea ecx, [edi + 0xc]
push eax
call fcn.00418c00
lea ecx, [edi + 0xc]
mov esi, dword [ebp - 4]
mov dword [ecx], ebx
mov eax, dword [edi]
sub eax, dword [ebp - 0x10]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x24]
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x14]
lea edx, [eax + ecx*2]
mov ecx, 1
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
cmp dword [edi + 0x7c], ecx
jle 0x420c74
mov eax, 0x18
mov dword [ebp - 0x20], eax
nop dword [eax]
mov ebx, dword [edi + 0x88]
add ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x420c3c
lea esi, [eax + eax*4]
shl esi, 3
push esi
push dword [ebx + 8]
push dword [ebp - 0x14]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
add dword [ebp - 0x14], esi
mov edx, dword [ebp - 0x10]
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x420c5d
add esi, esi
push esi
push dword [ebx + 0x14]
push edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add edx, esi
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
inc ecx
add eax, 0x18
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], eax
cmp ecx, dword [edi + 0x7c]
jl 0x420c10
mov eax, dword [ebp - 4]
mov esi, dword [eax]
mov ebx, dword [edi]
mov dword [edi + 0x38], edx
test ebx, ebx
je 0x420c8b
lea eax, [ebx + ebx*4]
cmp dword [esi + eax*8 - 8], 0
je 0x420d11
mov eax, dword [edi + 0x70]
xorps xmm0, xmm0
mov ecx, dword [edi + 4]
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], eax
movups xmm0, xmmword [edi + 0x60]
movups xmmword [ebp - 0x38], xmm0
cmp ebx, ecx
jne 0x420ceb
inc ebx
test ecx, ecx
je 0x420cd5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x420cda
mov eax, 8
cmp eax, ebx
mov ecx, edi
cmovg ebx, eax
push ebx
call fcn.00418d40
movups xmm0, xmmword [ebp - 0x38]
mov eax, dword [edi]
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movups xmmword [eax + ecx*8], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [eax + ecx*8 + 0x10], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [eax + ecx*8 + 0x20], xmm0
inc dword [edi]
mov ebx, dword [edi]
mov eax, edi
lea ecx, [ebx - 1]
lea ecx, [ecx + ecx*4]
lea edx, [eax + 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + ecx*8 + 0x1c], 0
lea ecx, [eax + ecx*8]
jne 0x420d40
movups xmm0, xmmword [edx]
movups xmmword [ecx], xmm0
movq xmm0, qword [edx + 0x10]
movq qword [ecx + 0x10], xmm0
jmp 0x420e0f
mov esi, 0x14
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x420d5a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x420d45
xor eax, eax
jmp 0x420d81
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x420d7c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x420d7c
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x420d7c
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x420d7c
xor eax, eax
jmp 0x420d81
sbb eax, eax
or eax, 1
test eax, eax
je 0x420e0f
mov ecx, dword [edi + 4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x60], xmm0
mov eax, edi
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], 0
movups xmm0, xmmword [eax + 0x60]
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x48], eax
movups xmmword [ebp - 0x38], xmm0
cmp ebx, ecx
jne 0x420deb
inc ebx
test ecx, ecx
je 0x420dd5
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x420dda
mov eax, 8
cmp eax, ebx
mov ecx, edi
cmovg ebx, eax
push ebx
call fcn.00418d40
movups xmm0, xmmword [ebp - 0x38]
mov eax, dword [edi]
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movups xmmword [eax + ecx*8], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [eax + ecx*8 + 0x10], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [eax + ecx*8 + 0x20], xmm0
inc dword [edi]
mov dword [edi + 0x7c], 1
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x420e35
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00418d40
mov dword [edi], 0
mov ecx, dword [edi + 0x10]
test ecx, ecx
jns 0x420e5b
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0xc]
call fcn.00418c00
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jns 0x420e82
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x18]
call fcn.00418a10
mov dword [edi + 0x18], 0
xorps xmm0, xmm0
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x28]
mov dword [edi + 0x24], eax
movups xmmword [edi + 0x60], xmm0
movq qword [edi + 0x70], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov ecx, dword [edi + 0x40]
test ecx, ecx
jns 0x420ed3
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x3c]
call fcn.00418f40
mov dword [edi + 0x3c], 0
mov ecx, dword [edi + 0x4c]
test ecx, ecx
jns 0x420efa
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x48]
call fcn.00418810
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x58]
test ecx, ecx
jns 0x420f21
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x54]
call fcn.00418fc0
mov dword [edi + 0x54], 0
xorps xmm0, xmm0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 1
mov ecx, dword [edi]
mov esi, dword [edi + 4]
cmp ecx, esi
jne 0x420f67
inc ecx
test esi, esi
je 0x420f52
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x420f57
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.00418d40
xorps xmm0, xmm0
mov eax, dword [edi]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 8]
movups xmmword [eax + ecx*8], xmm0
movups xmmword [eax + ecx*8 + 0x10], xmm0
movq qword [eax + ecx*8 + 0x20], xmm0
inc dword [edi]
mov dword [edi + 0x8c], 0x3f800000
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret