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

Disassembly:
jmp 0x6f8460
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov edi, dword [esp + 0x74]
test ebp, ebp
jne 0x6f848c
mov ecx, dword [edi]
mov al, byte [ecx + 4]
cmp al, 0x12
je 0x6f8480
cmp al, 0x11
jne 0x6f8485
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax]
mov ebp, dword [ecx + 0x10]
mov dword [esp + 0x70], ebp
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x90]
push dword [esp + 0x90]
push dword [esp + 0x90]
push edi
push ebp
call fcn.00414cfe
add esp, 0x1c
test eax, eax
jne 0x6f88f2
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push ebp
call fcn.00401177
mov ecx, dword [edi]
add esp, 0xc
mov esi, eax
mov dl, byte [ecx + 4]
cmp dl, 0x12
je 0x6f84dd
cmp dl, 0x11
jne 0x6f84e2
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
mov ecx, esi
shr eax, 8
push eax
call fcn.00403828
mov ecx, dword [edi]
xor ebx, ebx
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dl, byte [ecx + 4]
mov byte [esp + 0x3c], bl
cmp dl, 0x11
je 0x6f8511
cmp dl, 0x12
jne 0x6f8526
test ecx, ecx
je 0x6f8526
mov ebx, dword [ecx + 0x14]
cmp dl, 0x12
sete byte [esp + 0x3c]
mov ebp, dword [esp + 0x3c]
jmp 0x6f8564
mov ecx, dword [esp + 0x78]
lea esi, [ecx + edi*4]
cmp ecx, esi
je 0x6f85a1
mov ebp, dword [esp + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dl, byte [eax + 4]
cmp dl, 0x11
je 0x6f8546
cmp dl, 0x12
jne 0x6f8559
test eax, eax
je 0x6f8559
mov ebx, dword [eax + 0x14]
cmp dl, 0x12
sete byte [esp + 0x3c]
mov ebp, dword [esp + 0x3c]
add ecx, 4
cmp ecx, esi
jne 0x6f8535
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebp
test ebx, ebx
je 0x6f8586
push ebp
push ebx
push eax
call fcn.00405a51
mov edi, dword [esp + 0x88]
add esp, 0xc
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x8c], eax
jne 0x6f85ab
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
jmp 0x6f858a
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
add edi, 1
je 0x6f861b
cmp edi, 0x3fffffff
ja 0x6f88ff
shl edi, 2
cmp edi, 0x1000
jb 0x6f85ec
push edi
call fcn.00404818
add esp, 4
mov esi, eax
jmp 0x6f85ff
test edi, edi
je 0x6f85fd
push edi
call fcn.00405e93
add esp, 4
mov esi, eax
jmp 0x6f85ff
xor esi, esi
push esi
push 0
push 0
call fcn.0041567c
lea eax, [edi + esi]
mov dword [esp + 0x4c], esi
add esp, 0xc
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x44]
call fcn.00415e65
mov ecx, dword [esp + 0x78]
mov esi, ebp
mov eax, dword [esp + 0x7c]
or esi, 2
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
lea eax, [ecx + eax*4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], eax
cmp ecx, eax
je 0x6f8832
mov dword [esp + 0x10], ebp
nop dword [eax]
mov ebp, dword [ecx]
mov ecx, esi
sar ecx, 1
mov al, cl
mov dword [esp + 0x34], ecx
not al
test al, 1
je 0x6f868b
mov eax, dword [ebp]
mov al, byte [eax + 4]
cmp al, 0x12
je 0x6f8680
cmp al, 0x11
jne 0x6f868b
push 0
mov ecx, ebp
call fcn.00407b99
jmp 0x6f86b4
test cl, 1
je 0x6f86b6
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x6f86b6
mov eax, dword [ebp]
mov al, byte [eax + 4]
cmp al, 0x12
je 0x6f86b6
cmp al, 0x11
je 0x6f86b6
push ebp
push dword [esp + 0x18]
push ecx
call fcn.00404255
add esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x6f86ce
mov dword [eax], ebp
add eax, 4
mov dword [esp + 0x10], eax
mov ebp, eax
jmp 0x6f87bd
sub eax, edi
sar eax, 2
mov dword [esp + 0x28], eax
cmp eax, 0x3fffffff
je 0x6f88ff
sub ebx, edi
lea edx, [eax + 1]
sar ebx, 2
mov eax, 0x3fffffff
mov ecx, ebx
mov dword [esp + 0x30], edx
shr ecx, 1
sub eax, ecx
mov dword [esp + 0x2c], ebx
cmp ebx, eax
jbe 0x6f8717
mov eax, 0xfffffffc
push eax
mov dword [esp + 0x28], eax
call fcn.00404818
add esp, 4
mov ebx, eax
jmp 0x6f875f
lea eax, [ecx + ebx]
mov ecx, edx
cmp eax, edx
cmovae ecx, eax
cmp ecx, 0x3fffffff
ja 0x6f88fa
lea eax, [ecx*4]
mov dword [esp + 0x24], eax
cmp eax, 0x1000
jb 0x6f874c
push eax
call fcn.00404818
add esp, 4
mov ebx, eax
jmp 0x6f875f
test eax, eax
je 0x6f875d
push eax
call fcn.00405e93
add esp, 4
mov ebx, eax
jmp 0x6f875f
xor ebx, ebx
mov eax, dword [esp + 0x28]
push ebx
mov dword [ebx + eax*4], ebp
mov ebp, dword [esp + 0x14]
push ebp
push edi
call fcn.0041567c
add esp, 0xc
test edi, edi
je 0x6f87ac
mov eax, dword [esp + 0x2c]
lea ecx, [eax*4]
mov eax, edi
cmp ecx, 0x1000
jb 0x6f87a2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6f88e0
push ecx
push edi
call fcn.004036ca
add esp, 8
mov eax, dword [esp + 0x30]
mov edi, ebx
lea ebp, [ebx + eax*4]
add ebx, dword [esp + 0x24]
mov dword [esp + 0x10], ebp
and esi, 0xfffffffc
mov ecx, 0
test byte [esp + 0x34], 1
mov eax, esi
cmove eax, ecx
test eax, eax
jne 0x6f87e0
mov eax, dword [esp + 0x20]
mov ecx, esi
push dword [eax]
call fcn.0040e809
mov cl, byte [eax + 4]
cmp cl, 0x10
jne 0x6f87f0
mov esi, dword [eax + 0x10]
or esi, 2
jmp 0x6f881d
cmp cl, 0x11
je 0x6f87fa
cmp cl, 0x12
jne 0x6f8812
test eax, eax
je 0x6f8812
mov esi, dword [eax + 0x10]
or esi, 2
cmp cl, 0x12
je 0x6f881d
mov ecx, eax
call fcn.0040d418
jmp 0x6f881d
xor esi, esi
cmp cl, 0xf
cmove esi, eax
and esi, 0xfffffffd
mov ecx, dword [esp + 0x20]
add ecx, 4
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x38]
jne 0x6f8660
cmp byte [esp + 0x88], 0
mov eax, dword [esp + 0x80]
movzx edx, al
je 0x6f885b
mov eax, dword [esp + 0x84]
cmp eax, 0x3f
jae 0x6f885b
lea eax, [eax*2 + 2]
or edx, eax
mov ecx, dword [esp + 0x74]
xor eax, eax
sub ebp, edi
mov word [esp + 0x4e], ax
mov eax, dword [esp + 0x70]
xorps xmm0, xmm0
sar ebp, 2
mov byte [esp + 0x4c], 0x22
mov byte [esp + 0x4d], dl
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebp
movups xmmword [esp + 0x58], xmm0
mov dword [esp + 0x68], eax
call fcn.0040326a
movups xmm0, xmmword [esp + 0x4c]
sub esp, 0x20
mov ecx, dword [eax]
mov eax, esp
add ecx, 0x368
push dword [esp + 0x38]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x80]
movups xmmword [eax + 0x10], xmm0
call fcn.00408fa8
mov esi, eax
test edi, edi
je 0x6f88f0
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x6f88e6
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x6f88e6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push edi
call fcn.004036ca
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
call fcn.004104b5
call fcn.0040d567
int3