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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x318
mov esi, esp
mov dword [esi + 0x300], ebp
mov dword [esi + 0x304], esp
mov dword [esi + 0x310], 0xffffffff
mov dword [esi + 0x30c], 0x1006cb70
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x308]
mov ecx, dword fs:[0]
mov dword [esi + 0x308], ecx
mov dword fs:[0], eax
mov ecx, dword [ebx]
mov eax, ecx
xor eax, 6
or eax, dword [ebx + 4]
je 0x1005dd27
mov eax, dword [ebp + 0xc]
mov edx, ecx
and dl, 7
cmp dl, 4
je 0x1005dca9
and ecx, 7
cmp ecx, 5
je 0x1005dd38
lea ecx, [esi + 0x40]
push 1
push eax
push ebx
push ecx
call fcn.100348d0
add esp, 0x10
mov eax, dword [esi + 0x40]
cmp eax, 3
je 0x1005dcc6
test eax, eax
je 0x1005dc6a
mov ecx, dword [esi + 0x44]
cmp eax, 1
jne 0x1005dc6c
lea edi, [esi + 0x90]
mov dword [esi + 4], ecx
mov dword [esi + 0x48], ecx
push 0x138
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x90]
mov dword [ebx], 5
mov dword [ebx + 4], 0
and eax, 6
cmp eax, 4
mov dword [esi + 0x3c], eax
je 0x1005dd66
lea ebx, [esi + 0x1c8]
push 0x138
push edi
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi], 1
mov dword [esi + 0x310], 1
lea eax, [esi + 0x5c]
push ebx
push eax
call fcn.100346a0
add esp, 8
movsd xmm0, qword [esi + 0x70]
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
cmp dword [esi + 0x78], 2
movsd qword [esi + 0x30], xmm0
movsd xmm0, qword [esi + 0x68]
mov dword [esi + 8], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], ecx
movsd qword [esi + 0x28], xmm0
je 0x1005db94
lea ecx, [esi + 0x78]
mov dword [esi + 0x310], 6
call fcn.1002c200
lea ecx, [esi + 0x84]
mov byte [esi + 1], 1
mov dword [esi + 0x310], 2
call fcn.1002c3c0
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
movsd xmm0, qword [esi + 0x28]
movsd xmm1, qword [esi + 0x30]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x4c], edi
movsd qword [esi + 0x20], xmm1
movsd qword [esi + 0x18], xmm0
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x58], eax
movzx eax, byte [0x10284b09]
push 4
push 0xc
call fcn.10013450
add esp, 8
test eax, eax
mov dword [esi + 0xc], eax
je 0x1005ddc7
mov ecx, eax
mov eax, dword [esi + 0x58]
movsd xmm0, qword [esi + 0x50]
movsd xmm2, qword [esi + 0x18]
movsd xmm1, qword [esi + 0x20]
mov dword [esi + 0x310], 3
mov dword [ecx + 8], eax
lea eax, [esi + 0x5c]
movsd qword [ecx], xmm0
movsd qword [esi + 0x64], xmm2
movsd qword [esi + 0x6c], xmm1
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], 0x101d6400
push eax
push edi
call fcn.10102f40
add esp, 8
mov eax, dword [esi + 0x90]
xor eax, 4
or eax, dword [esi + 0x94]
jne 0x1005dc67
lea ecx, [esi + 0x90]
mov byte [esi + 2], 0
mov dword [esi + 0x310], 0
call fcn.1005f670
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
mov dword [esi + 0x14], ecx
mov dword [esi + 4], ecx
mov edx, eax
mov dword [esi + 8], edi
add edx, 0xfffffffb
adc edi, 0xffffffff
cmp edx, 2
sbb edi, 0
jae 0x1005dcca
xor eax, 6
mov dword [ebx + 4], 0
mov dword [ebx], 6
or eax, dword [esi + 8]
je 0x1005dd42
test ecx, ecx
jne 0x1005dcf2
jmp 0x1005dd0b
lea ecx, [ebx + 8]
lea edx, [esi + 0x40]
push eax
push ecx
push edx
call fcn.100ef1e0
add esp, 0xc
mov eax, dword [esi + 0x40]
cmp eax, 3
jne 0x1005dad6
mov al, 2
jmp 0x1005dd12
mov ecx, ebx
mov dword [esi + 0x310], 7
call fcn.1005f670
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov dword [eax + 4], 0
mov dword [eax], 6
test ecx, ecx
je 0x1005dd0b
mov byte [esi + 3], 0
mov dword [esi + 0x310], 8
push dword [esi + 4]
call fcn.100652a0
add esp, 4
cmp dword [esi + 4], 0
setne al
mov ecx, dword [esi + 0x308]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x101d8734
push 0x36
push 0x101d86fc
call fcn.101c63fa
push 0x101d9700
call fcn.101cc4c0
mov byte [esi + 3], 1
mov dword [esi + 0x310], 8
push 0x101d86ec
push 0x28
push 0x101d8650
call fcn.101cc600
add esp, 0xc
jmp 0x1005dddd
mov eax, dword [esi + 4]
lea ecx, [esi + 0x5c]
mov byte [esi], 0
mov dword [esi + 0x310], 1
mov dword [esi + 0x5c], eax
call fcn.1002dc60
lea eax, [esi + 0x18]
mov dword [esi + 0x18], 0x101d9724
mov dword [esi + 0x5c], 0x101d9758
mov dword [esi + 0x60], 1
mov dword [esi + 0x6c], 0
mov dword [esi + 0x1c], 0x10073260
mov byte [esi], 0
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 1
push 0x101d9760
lea eax, [esi + 0x5c]
push eax
call fcn.101cc530
add esp, 8
jmp 0x1005dddd
mov dword [esi + 0x310], 5
push 0xc
push 4
call fcn.101cc329
add esp, 8
ud2