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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x40025d24]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x18]
mov ecx, edx
mov dword [esp + 0x68], eax
mov ebx, ecx
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x70], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x98], eax
mov dword [esp + 8], ebx
push edi
mov edi, dword [ebp + 0x24]
test ecx, ecx
je 0x4001afd3
lea eax, [ecx - 1]
lea eax, [esi + eax*4]
cmp dword [eax], 0
jne 0x4001afcf
sub eax, 4
sub ebx, 1
jne 0x4001afc2
mov dword [esp + 0xc], ebx
mov edx, dword [ebp + 0xc]
mov eax, edx
mov dword [esp + 0x10], eax
test edx, edx
je 0x4001afff
mov ecx, dword [esp + 0x70]
lea ecx, [ecx + edx*4]
add ecx, 0xfffffffc
cmp dword [ecx], 0
jne 0x4001aff7
sub ecx, 4
sub eax, 1
jne 0x4001afea
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], ecx
cmp ecx, edx
ja 0x4001b00b
mov dword [esp + 0x38], edx
and dword [esp + 0x88], 0
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x94], eax
cmp ecx, edx
jbe 0x4001b050
mov edx, ecx
lea eax, [edx*8 + 6]
mov dword [esp + 0x8c], edi
push ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x94], eax
call fcn.4001e5bd
mov edx, dword [esp + 0x8c]
neg eax
mov dword [esp + 0x50], ebx
sbb edi, edi
mov dword [esp + 0x7c], edx
neg edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
je 0x4001b1f9
test ebx, ebx
je 0x4001b1ed
test eax, eax
je 0x4001b1ed
test esi, esi
je 0x4001b1e1
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x4001b1e1
cmp dword [esp + 0x6c], 0
je 0x4001b1e1
cmp dword [esp + 0x64], 0
je 0x4001b1e1
cmp esi, dword [esp + 0x6c]
je 0x4001b1d5
cmp ecx, dword [esp + 0x6c]
je 0x4001b1d5
cmp esi, dword [esp + 0x64]
je 0x4001b1d5
cmp ecx, dword [esp + 0x64]
je 0x4001b1d5
mov esi, dword [esp + 0x90]
shl esi, 2
push esi
push 0
push edx
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
shl ecx, 2
lea eax, [ecx + 8]
add ebx, eax
mov dword [esp + 0x24], ebx
add ebx, eax
mov eax, ebx
mov dword [esp + 0x2c], ebx
add eax, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x5c], ebx
mov ebx, eax
add eax, ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
shl eax, 3
add ecx, eax
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0xc]
add eax, 8
mov dword [esp + 0x2c], ecx
add ecx, eax
lea eax, [esi + edx]
cmp ecx, eax
je 0x4001b17c
mov eax, dword [esp + 0x10]
mov dword [0x40026368], 4
jmp 0x4001b1f7
mov esi, dword [esp + 0x24]
lea ecx, [edx + 4]
mov eax, ebx
mov dword [esp + 0x44], ecx
shl eax, 2
add esi, 4
push eax
push dword [esp + 0x50]
mov dword [esp + 0x88], ecx
push ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x90], esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esp + 0x70]
shl eax, 2
push eax
push ecx
push esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x40]
add esp, 0xc
mov dword [eax], 1
mov eax, dword [esp + 0x10]
jmp 0x4001b1f9
mov dword [0x40026368], 0xd
jmp 0x4001b1f7
mov dword [0x40026368], 0xb
jmp 0x4001b1f7
mov dword [0x40026368], 0xf
xor edi, edi
and dword [esp + 0x68], 0
mov dword [esp + 0x1c], 1
jmp 0x4001b99e
test ebx, ebx
je 0x4001b9cd
test eax, eax
je 0x4001b9cd
mov ecx, dword [esp + 0x44]
push 0x20
mov esi, dword [ecx + ebx*4 - 4]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + eax*4 - 4]
mov ecx, esi
or ecx, 1
mov dword [esp + 0x34], edx
pop eax
mov dword [esp + 0x18], eax
cmp ecx, 0x8000000
jae 0x4001b255
shl ecx, 5
sub eax, 5
cmp ecx, 0x8000000
jb 0x4001b243
mov dword [esp + 0x18], eax
shr ecx, 0x1c
mov eax, 0x24949c
shr eax, cl
add ecx, ecx
shr eax, cl
mov ecx, edx
and eax, 7
or ecx, 1
sub dword [esp + 0x18], eax
mov edx, 0x8000000
push 0x20
pop eax
mov dword [esp + 0x58], eax
cmp ecx, edx
jae 0x4001b28d
shl ecx, 5
sub eax, 5
cmp ecx, edx
jb 0x4001b27f
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov edx, ebx
shl edx, 5
add eax, 0xffffffe0
add eax, edx
mov dword [esp + 0x3c], edx
shr ecx, 0x1c
mov edx, 0x24949c
shr edx, cl
add ecx, ecx
shr edx, cl
mov ecx, dword [esp + 0x10]
and edx, 7
mov dword [esp + 0x4c], eax
mov eax, ecx
shl eax, 5
sub eax, edx
mov edx, dword [esp + 0x58]
add edx, 0xffffffe0
add eax, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x24], edx
cmp edx, eax
ja 0x4001b2dc
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
cmp ebx, ecx
ja 0x4001b2e8
mov dword [esp + 0x14], ecx
push ebx
push dword [esp + 0x48]
mov edx, ecx
mov ecx, dword [esp + 0x48]
call fcn.4001961e
xor ecx, ecx
mov dword [esp + 0x98], eax
test eax, eax
mov eax, dword [ebp + 0xc]
setg cl
xor edx, edx
inc edx
mov dword [esp + 0x20], ecx
sub edx, ecx
mov ecx, dword [esp + 0x74]
inc dword [esp + 0x68]
inc ecx
add eax, ecx
mov dword [esp + 0x58], edx
mov ecx, dword [esp + 0x20]
shl eax, 5
cmp dword [esp + 0x68], eax
jbe 0x4001b338
mov dword [0x40026368], 0xe
cmp eax, dword [esp + 0x68]
sbb eax, eax
not eax
and edi, eax
je 0x4001b99a
cmp dword [esp + 0x14], 1
jne 0x4001b562
mov ebx, dword [esp + 0x30]
mov eax, ebx
not eax
mov dword [esp + 0x18], edi
cmp esi, eax
jbe 0x4001b3d0
cmp dword [esp + 0x98], 0
jg 0x4001b371
sub esi, ebx
jmp 0x4001b377
sub ebx, esi
mov dword [esp + 0x30], ebx
push dword [esp + 0x1c]
mov eax, dword [esp + ecx*4 + 0x60]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
push eax
call fcn.40019543
mov edx, eax
mov eax, edi
mov dword [esp + 0x18], eax
test edx, edx
je 0x4001b3d4
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebp + 0xc]
jb 0x4001b3b4
xor eax, eax
mov dword [0x40026368], 4
mov dword [esp + 0x18], eax
jmp 0x4001b3d4
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + ebx*4 + 0x5c]
mov ebx, dword [esp + 0x30]
mov dword [ecx + eax*4], edx
inc eax
mov dword [esp + 0x1c], eax
mov eax, edi
mov dword [esp + 0x18], eax
jmp 0x4001b3d4
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
inc edi
mov dword [esp + 0xc], ecx
xor edx, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edx
test eax, eax
je 0x4001b497
test ebx, ebx
je 0x4001b493
cmp esi, ebx
jb 0x4001b43d
mov eax, esi
shr eax, 2
cmp eax, ebx
jb 0x4001b42b
xor edx, edx
mov eax, esi
div ebx
mov edx, dword [esp + 0x14]
mov ecx, eax
imul eax, ebx
sub esi, eax
mov eax, ecx
imul ecx, dword [esp + 0x20]
imul eax, edx
add edi, eax
add dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
jmp 0x4001b43d
mov eax, dword [esp + 0x20]
sub esi, ebx
add edi, edx
add ecx, eax
cmp esi, ebx
jae 0x4001b42f
mov dword [esp + 0xc], ecx
test esi, esi
je 0x4001b493
mov eax, ebx
shr eax, 2
cmp eax, esi
jb 0x4001b478
xor edx, edx
mov eax, ebx
div esi
mov edx, dword [esp + 0x14]
mov ecx, eax
imul eax, esi
sub ebx, eax
mov eax, ecx
imul ecx, dword [esp + 0xc]
imul eax, edi
add edx, eax
add dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], edx
jmp 0x4001b3ef
mov eax, dword [esp + 0x20]
sub ebx, esi
add edx, edi
add eax, ecx
cmp ebx, esi
jae 0x4001b47c
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edx
jmp 0x4001b3ef
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], ecx
mov dword [eax], esi
mov eax, dword [esp + 0x40]
mov dword [eax], ebx
xor ebx, ebx
test esi, esi
setne bl
xor eax, eax
cmp dword [esp + 0x30], eax
mov dword [esp + 0xc], ebx
setne al
mov dword [esp + 0x50], ebx
cmp dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xd8], eax
je 0x4001b9c6
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xa0]
mov edx, dword [esp + 0x34]
push ecx
push eax
push esi
push dword [esp + 0x54]
lea ecx, [esp + 0xdc]
call fcn.40045f0a
test eax, eax
je 0x4001b9c6
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
xor edi, edi
inc edi
test edx, edx
jne 0x4001b53d
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x4001b20b
cmp esi, dword [ebp + 0xc]
jae 0x4001b9ab
mov eax, dword [esp + 0x34]
mov dword [eax + esi*4], edx
mov eax, dword [esp + 0x48]
mov dword [eax + esi*4], ecx
inc esi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], esi
jmp 0x4001b20b
mov esi, dword [esp + 0x78]
lea eax, [esi + 0x10]
cmp dword [esp + 0x4c], eax
ja 0x4001b745
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add eax, dword [esp + 0x3c]
cmp esi, eax
ja 0x4001b745
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov esi, ecx
push 0x1f
shl esi, 5
and dword [edx + eax*4], 0
mov eax, dword [esp + 0x48]
sub esi, dword [esp + 0x28]
mov dword [esp + 0x28], esi
and dword [eax + ebx*4], 0
mov edi, dword [eax + ecx*4 - 0xc]
mov edx, dword [eax + ecx*4 - 8]
mov eax, edx
pop ebx
sub ebx, esi
shr edi, 1
mov ecx, ebx
shr edx, 1
shr edi, cl
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x44]
or edi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], edi
mov dword [esp + 0xa8], edi
mov edi, dword [ecx + eax*4 - 4]
mov ecx, esi
shl edi, cl
mov ecx, ebx
shr edx, cl
mov ecx, dword [esp + 0x40]
or edi, edx
mov dword [esp + 0xac], edi
mov esi, dword [ecx + eax*4 - 0xc]
mov edx, dword [ecx + eax*4 - 8]
mov ecx, ebx
shr esi, 1
mov eax, edx
shr esi, cl
mov ecx, dword [esp + 0x24]
shl eax, cl
mov ecx, dword [esp + 0x40]
or esi, eax
mov eax, dword [esp + 0x14]
shr edx, 1
mov dword [esp + 0xb0], esi
mov eax, dword [ecx + eax*4 - 4]
mov ecx, dword [esp + 0x24]
shl eax, cl
mov ecx, ebx
shr edx, cl
lea ecx, [esp + 0xcc]
or eax, edx
push eax
push esi
push edi
push dword [esp + 0x48]
mov dword [esp + 0xc4], eax
call fcn.40045f0a
test eax, eax
je 0x4001b9c6
mov eax, dword [esp + 0xd4]
or eax, dword [esp + 0xd0]
jne 0x4001b66e
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0xd0], 1
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp ebx, eax
ja 0x4001b67c
mov ebx, eax
mov esi, dword [esp + 0x40]
lea eax, [esp + 0xbc]
mov edi, dword [esp + 0x44]
mov edx, edi
push ecx
push eax
push ebx
push esi
lea ecx, [esp + 0xdc]
mov dword [esp + 0x1c], ebx
call fcn.4001e98e
test eax, eax
je 0x4001b9c6
cmp dword [esp + 0xbc], 0
jne 0x4001b9bc
cmp dword [esp + 0xc0], 0
jne 0x4001b9bc
mov eax, ebx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x4001b700
mov edx, ebx
lea ecx, [edi - 4]
shl edx, 2
add ecx, edx
cmp dword [ecx], 0
jne 0x4001b6e6
sub ecx, 4
sub ebx, 1
jne 0x4001b6d9
lea ecx, [esi - 4]
mov dword [esp + 0xc], ebx
add ecx, edx
cmp dword [ecx], 0
jne 0x4001b6fc
sub ecx, 4
sub eax, 1
jne 0x4001b6ef
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x58], eax
lea ecx, [esp + 0xd0]
lea eax, [esp + 0xc8]
mov dword [esp + 0x54], ebx
push eax
push esi
push dword [esp + 0x54]
call fcn.4001e8bc
test eax, eax
je 0x4001b9c6
mov edx, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
jmp 0x4001b52a
mov esi, dword [esp + ecx*4 + 0x50]
mov edi, dword [esp + edx*4 + 0x50]
sub esi, edi
mov ebx, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x14], esi
mov ecx, ebx
mov dword [esp + 0x30], ebx
test ebx, ebx
je 0x4001b77d
mov eax, dword [esp + edx*4 + 0x5c]
lea eax, [eax + ebx*4]
add eax, 0xfffffffc
cmp dword [eax], 0
jne 0x4001b779
sub eax, 4
sub ecx, 1
jne 0x4001b76c
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + eax*4 + 0x80]
push ecx
push dword [esp + 0x2c]
mov dword [esp + 0x44], ecx
push dword [esp + 0x34]
push 0
push edi
push dword [esp + edx*4 + 0x94]
mov edx, dword [esp + eax*4 + 0x68]
call fcn.4001bfad
test eax, eax
je 0x4001b9c6
test esi, esi
je 0x4001b7cf
mov eax, dword [esp + 0x2c]
lea eax, [eax + esi*4]
add eax, 0xfffffffc
cmp dword [eax], 0
jne 0x4001b7cb
sub eax, 4
sub esi, 1
jne 0x4001b7be
mov dword [esp + 0x14], esi
test edi, edi
je 0x4001b7ea
mov eax, dword [esp + 0x28]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp dword [eax], 0
jne 0x4001b7ea
sub eax, 4
sub edi, 1
jne 0x4001b7dd
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x50], edi
mov eax, edi
shl eax, 2
push eax
push dword [esp + 0x2c]
push dword [esp + 0x44]
call sub.msvcrt.dll_memcpy
mov edi, dword [esp + 0x3c]
add esp, 0xc
cmp esi, edi
jbe 0x4001b82a
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + eax*4 + 0x5c]
mov eax, edi
jmp 0x4001b842
mov eax, dword [esp + 0x58]
mov ecx, edi
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc], edi
mov eax, dword [esp + eax*4 + 0x5c]
mov dword [esp + 0x18], eax
mov eax, esi
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], edx
cmp dword [esp + 0x2c], ebx
je 0x4001b9c6
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x28]
cmp dword [esp + ebx*4 + 0x5c], esi
mov esi, dword [esp + 0x14]
je 0x4001b9c6
mov ebx, ecx
shl ebx, 2
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x4001b893
push dword [esp + 0x24]
push 0
push dword [esp + 0x30]
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x4001b909
mov edx, dword [edx]
push ecx
push ecx
push dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
call fcn.4001a43c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [edx + ecx], eax
mov eax, dword [esp + 0x4c]
cmp eax, 1
je 0x4001b90d
mov ecx, dword [esp + 0x38]
lea esi, [edx + 4]
mov edx, dword [esp + 0x28]
add esi, dword [esp + 0x28]
sub edx, ecx
mov ebx, dword [esp + 0xc]
dec eax
lea edi, [ecx + 4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], eax
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [edx + edi]
mov edx, dword [edi]
push ebx
push eax
call fcn.4001a274
sub dword [esp + 0x24], 1
lea edi, [edi + 4]
mov edx, dword [esp + 0x3c]
mov dword [esi], eax
lea esi, [esi + 4]
jne 0x4001b8d9
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add esi, edi
je 0x4001b924
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
jne 0x4001b924
sub eax, 4
sub esi, 1
jne 0x4001b917
mov eax, dword [esp + 0x20]
and dword [esp + 0x38], 0
push ecx
mov edi, dword [esp + eax*4 + 0x60]
lea eax, [esp + 0x3c]
push eax
push edi
cmp esi, ebx
jae 0x4001b94b
push esi
push ecx
mov edx, ebx
mov ecx, edi
call fcn.4001938b
mov esi, ebx
jmp 0x4001b954
push ebx
push edi
mov edx, esi
call fcn.4001938b
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x4001b986
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4001b96a
mov dword [edi + esi*4], eax
inc esi
mov eax, dword [esp + 0x54]
xor edi, edi
mov ebx, dword [esp + 0x50]
inc edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
jmp 0x4001b20b
mov eax, dword [esp + 0x54]
xor edi, edi
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
jmp 0x4001b99e
mov eax, dword [esp + 0x10]
test edi, edi
jne 0x4001b20b
jmp 0x4001ba79
xor edi, edi
mov dword [0x40026368], 4
jmp 0x4001ba79
mov dword [0x40026368], 4
xor edi, edi
jmp 0x4001ba79
test edi, edi
je 0x4001ba79
xor eax, eax
test ebx, ebx
sete al
mov esi, eax
mov dword [esp + 0x78], eax
shl esi, 2
mov eax, dword [esp + esi + 0x50]
mov dword [esp + 0x88], eax
shl eax, 2
push eax
push dword [esp + esi + 0x84]
push dword [esp + 0x74]
call sub.msvcrt.dll_memcpy
mov ebx, dword [ebp + 0xc]
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
sub eax, esi
add esp, 0xc
mov eax, dword [eax]
mov edx, eax
push ebx
mov dword [esp + 0x40], eax
call fcn.40019692
test eax, eax
js 0x4001ba38
mov edx, dword [esp + esi + 0x5c]
mov ecx, dword [esp + 0x3c]
push ebx
call fcn.40019692
test eax, eax
jns 0x4001ba44
xor edi, edi
mov dword [0x40026368], 4
test edi, edi
je 0x4001ba79
cmp dword [esp + 0x78], 0
jne 0x4001ba67
mov eax, ebx
shl eax, 2
push eax
push dword [esp + 0x38]
push dword [esp + 0x6c]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x4001ba79
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
push ebx
push dword [esp + 0x68]
call fcn.40019838
cmp dword [esp + 0x94], 0
je 0x4001ba92
mov ebx, dword [esp + 0x7c]
test ebx, ebx
je 0x4001ba92
mov ecx, ebx
call fcn.40015bdd
test edi, edi
je 0x4001baa6
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x88]
mov dword [ecx], eax
mov ecx, dword [esp + 0xdc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.40020a80
mov esp, ebp
pop ebp
ret 0x24