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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x10104008]
xor eax, esp
mov dword [esp + 0xe4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, 0x101080ea
mov dword [esp + 0x3c], edi
call fcn.100de193
mov ecx, dword [edi]
lea edx, [esp + 0x80]
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x48], ecx
mov eax, dword [ecx + 0x6c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0x64
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov word [esp + 0x28], 0
cmp dword [ecx + 0xbc], 1
jle 0x10066974
mov al, byte [esi]
test al, al
je 0x10066cbe
nop dword [eax]
mov edi, esi
inc esi
cmp al, 0xa
je 0x100668ed
mov al, byte [esi]
test al, al
jne 0x100668e2
mov edx, dword [esp + 0x24]
add edx, 3
cmp edx, dword [esp + 0x1c]
jb 0x1006690f
push 3
mov edx, 0x100f3a28
lea ecx, [esp + 0x18]
call fcn.10041bf0
add esp, 4
jmp 0x1006692b
mov ecx, dword [esp + 0x18]
mov ax, word [0x100f3a28]
mov dword [esp + 0x24], edx
mov word [edx + ecx - 3], ax
mov al, byte [0x100f3a2a]
mov byte [edx + ecx - 1], al
mov eax, dword [esp + 0x24]
mov ecx, esi
sub ecx, edi
add eax, ecx
cmp eax, dword [esp + 0x1c]
jb 0x1006694c
push ecx
mov edx, edi
lea ecx, [esp + 0x18]
call fcn.10041bf0
add esp, 4
jmp 0x10066965
test ecx, ecx
je 0x10066965
mov dword [esp + 0x24], eax
sub eax, ecx
add eax, dword [esp + 0x18]
push ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov al, byte [esi]
test al, al
jne 0x100668e0
jmp 0x10066c78
cmp word [edi + 0x10], 0
jne 0x100669c3
test esi, esi
jne 0x10066995
xor ecx, ecx
lea eax, [esp + 0x14]
push ecx
push esi
push eax
call fcn.10041c30
add esp, 0xc
jmp 0x10066c78
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100669a0
sub ecx, edx
lea eax, [esp + 0x14]
and ecx, 0x3fffffff
push ecx
push esi
push eax
call fcn.10041c30
add esp, 0xc
jmp 0x10066c78
mov al, byte [esi]
test al, al
je 0x10066cbe
nop dword [eax]
xor ecx, ecx
mov edi, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ecx
test al, al
je 0x10066a10
lea edx, [esp + 0x44]
mov ecx, edi
call fcn.100b9e30
cmp dword [esp + 0x44], 0x99
mov ecx, dword [esp + 0x2c]
je 0x10066a0c
add edi, eax
add ecx, eax
mov dword [esp + 0x2c], ecx
cmp byte [edi], 0
jne 0x100669e0
mov edi, dword [esp + 0x34]
jmp 0x10066a12
mov edi, eax
jmp 0x10066a12
xor edi, edi
mov eax, dword [esp + 0x24]
add eax, ecx
cmp eax, dword [esp + 0x1c]
jb 0x10066a2f
push ecx
mov edx, esi
lea ecx, [esp + 0x18]
call fcn.10041bf0
add esp, 4
jmp 0x10066a48
test ecx, ecx
je 0x10066a4c
mov dword [esp + 0x24], eax
sub eax, ecx
add eax, dword [esp + 0x18]
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 0x2c]
add esi, ecx
test edi, edi
je 0x10066c78
cmp byte [esi], 0x3f
jne 0x10066a78
cmp edi, 1
jle 0x10066a72
lea ecx, [esi + 1]
lea edx, [esp + 0x30]
call fcn.10043870
mov eax, dword [esp + 0x30]
jmp 0x10066a91
mov eax, dword [esp + 0x38]
jmp 0x10066a8d
mov ecx, dword [esp + 0x3c]
mov edx, esi
push edi
mov ecx, dword [ecx + 0x80]
call fcn.10044330
add esp, 4
mov dword [esp + 0x30], eax
add esi, edi
lea ecx, [eax + 1]
lea edi, [eax + eax*4]
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x3c]
lea edi, [edi - 5]
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x64]
lea edi, [eax + edi*8]
movzx eax, word [edi + 8]
mov dword [esp + 0x34], edi
test al, 1
je 0x10066af6
mov eax, dword [esp + 0x24]
lea edx, [eax + 4]
cmp edx, dword [esp + 0x1c]
jb 0x10066adf
push 4
mov edx, str.NULL
lea ecx, [esp + 0x18]
call fcn.10041bf0
add esp, 4
jmp 0x10066c6e
mov eax, dword [esp + 0x18]
mov ecx, dword [str.NULL]
mov dword [esp + 0x24], edx
mov dword [edx + eax - 4], ecx
jmp 0x10066c6e
test al, 0x24
je 0x10066b16
push dword [edi + 4]
lea eax, [esp + 0x18]
push dword [edi]
push 0x100f2430
push eax
call fcn.10042330
add esp, 0x10
jmp 0x10066c6e
test al, 8
je 0x10066b3d
movsd xmm0, qword [edi]
lea eax, [esp + 0x14]
sub esp, 8
movsd qword [esp], xmm0
push str.__.15g
push eax
call fcn.10042330
add esp, 0x10
jmp 0x10066c6e
test al, 2
je 0x10066bd7
mov ecx, dword [esp + 0x48]
mov al, byte [ecx + 0x4e]
mov byte [esp + 0x40], al
cmp al, 1
je 0x10066ba6
xorps xmm0, xmm0
push 0
push dword [esp + 0x44]
movq qword [esp + 0x78], xmm0
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x58]
movaps xmmword [esp + 0x58], xmm0
movaps xmmword [esp + 0x68], xmm0
push dword [edi + 0xc]
mov edx, dword [edi + 0x10]
call fcn.1005e770
add esp, 0xc
lea ecx, [esp + 0x50]
mov edx, 1
call fcn.1005d8f0
cmp eax, 7
jne 0x10066ba2
mov byte [esp + 0x28], al
mov dword [esp + 0x1c], 0
lea edi, [esp + 0x50]
push dword [edi + 0x10]
lea eax, [esp + 0x18]
push dword [edi + 0xc]
push str._.q
push eax
call fcn.10042330
add esp, 0x10
cmp byte [esp + 0x40], 1
je 0x10066c6e
lea ecx, [esp + 0x50]
call fcn.1005ddf0
jmp 0x10066c6e
test eax, 0x4000
lea eax, [esp + 0x14]
je 0x10066bf4
push dword [edi]
push str.zeroblob__d_
push eax
call fcn.10042330
add esp, 0xc
jmp 0x10066c6e
push 2
push 0x100f3a90
push eax
call fcn.10041c30
mov eax, dword [edi + 0xc]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x10066c3a
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x10]
movzx eax, byte [eax + edi]
push eax
lea eax, [esp + 0x18]
push str._02x
push eax
call fcn.10042330
inc edi
add esp, 0xc
cmp edi, dword [esp + 0x2c]
jl 0x10066c15
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
lea edx, [eax + 1]
cmp edx, dword [esp + 0x1c]
jb 0x10066c5c
push 1
mov edx, 0x100f3a7c
lea ecx, [esp + 0x18]
call fcn.10041bf0
add esp, 4
jmp 0x10066c6e
mov eax, dword [esp + 0x18]
mov cl, byte [0x100f3a7c]
mov dword [esp + 0x24], edx
mov byte [edx + eax - 1], cl
mov al, byte [esi]
test al, al
jne 0x100669d0
cmp byte [esp + 0x28], 0
je 0x10066cb7
test byte [esp + 0x29], 4
je 0x10066c97
mov edx, dword [esp + 0x18]
test edx, edx
je 0x10066c97
mov ecx, dword [esp + 0x14]
call fcn.1003f6f0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov ecx, dword [esp + 0xe4]
xor ecx, esp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x18], 0
je 0x10066c9f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov byte [eax + ecx], 0
cmp dword [esp + 0x20], 0
jbe 0x10066c9f
test byte [esp + 0x29], 4
jne 0x10066c9f
lea ecx, [esp + 0x14]
call fcn.10041ce0
mov ecx, dword [esp + 0xec]
pop edi
pop esi
xor ecx, esp
call fcn.100dcb60
mov esp, ebp
pop ebp
ret