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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x94
movsd xmm0, qword [ecx]
mov esi, ecx
movsd qword [esp + 0x7c], xmm0
mov eax, dword [ecx + 8]
mov dword [esp + 0x84], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 0xc], 2
mov ecx, dword [ecx + 0x18]
cmp eax, 2
mov dword [esp + 0x78], ecx
movsd xmm0, qword [esi + 0x10]
movsd qword [esp + 0x70], xmm0
je 0x1005fcf6
movsd xmm0, qword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x78]
cmp eax, 1
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x70]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edx
movsd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
jne 0x1005f99a
cmp eax, 3
jne 0x1005f9a3
jmp 0x1005fced
cmp eax, 1
jne 0x1005fced
mov ecx, dword [esi + 0x34]
lea eax, [ecx + 1]
cmp eax, 2
jae 0x1005fac2
cmp dword [esp + 0x24], 1
je 0x1005fced
mov eax, dword [0x104debf8]
cmp eax, 5
jb 0x1005f9cc
mov eax, dword [0x104debfc]
mov eax, dword [0x104d53e8]
dec eax
cmp eax, 5
jb 0x1005fced
mov ecx, dword [0x104d4dc8]
test ecx, ecx
je 0x1005fced
mov al, 1
cmp ecx, 1
je 0x1005f9fb
cmp ecx, 2
jne 0x1005fd71
mov al, 2
movzx edx, al
mov ecx, 0x104d4dc8
call fcn.10109d10
test al, al
je 0x1005fced
mov ecx, dword [0x104d4dcc]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x1005fddd
mov edx, dword [ecx + 0x2c]
mov edi, dword [ecx + 0x34]
mov ebx, dword [ecx + 0x38]
mov dword [esp + 0x34], 0
mov dword [esp + 0x4c], 0x104199c4
mov dword [esp + 0x50], 2
lea ebp, [ecx + 0x2c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x38], edx
lea edx, [esi + 0x1c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
lea edi, [esp + 0x68]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x68], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x5c], edi
lea edi, [esp + 0x4c]
mov dword [esp + 0x6c], 0x100619e0
mov dword [esp + 0x60], 1
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 0x10419960
mov dword [esp + 0x88], edx
lea edx, [esp + 0x88]
mov dword [esp + 0x8c], 1
mov dword [esp + 0x90], ebp
call fcn.1010a570
jmp 0x1005fced
mov eax, dword [ecx]
nop word cs:[eax + eax]
nop
test eax, eax
je 0x1005f9b2
js 0x1005fdd9
lea edx, [eax + 1]
lock cmpxchg dword [ecx], edx
jne 0x1005fad0
mov ebp, dword [esi + 0x34]
mov dword [esp + 0xc], ebp
mov ecx, dword [ebp + 8]
call fcn.100f4810
mov eax, dword [0x104dec50]
test eax, eax
jne 0x1005fd88
mov al, byte [ebp + 0xc]
lea ebx, [ebp + 0xc]
test al, al
je 0x1005fb5e
mov eax, dword [0x104dec50]
test eax, eax
jne 0x1005fda4
mov edi, dword [ebp + 8]
mov eax, dword [0x104dec60]
test eax, eax
jne 0x1005fb44
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
jne 0x1005fbb7
mov eax, dword [edi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
mov bl, 1
jmp 0x1005fcda
xor eax, eax
movzx ecx, byte [esi + 0x1c]
xor edi, edi
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
test ecx, ecx
je 0x1005fbf6
cmp ecx, 1
je 0x1005fbe8
call sub.KERNEL32.dll_GetProcessHeap
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
mov dword [esp], eax
je 0x1005fdf6
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xc]
lea edx, [eax + 8]
push dword [eax + 4]
push dword [eax]
push edx
mov ebx, dword [esp + 0xc]
push ebx
call dword [ecx]
mov ecx, ebx
add esp, 0x10
mov eax, 2
jmp 0x1005fbf8
mov eax, dword [0x104dec78]
test eax, eax
jne 0x1005fbde
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push edi
call eax
mov bl, 1
jmp 0x1005fcda
movzx edi, byte [esi + 0x1d]
mov eax, 1
shl edi, 8
jmp 0x1005fbf8
xor eax, eax
or edi, eax
lea ebx, [ebp + 0x10]
lea eax, [esp + 0x3c]
lea edx, [esi + 0x2c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x30]
push dword [esi + 0x28]
push dword [esi + 0x24]
push edx
push eax
call dword [ecx]
add esp, 0x10
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x18]
movsd xmm1, qword [esp + 0x20]
lea edx, [esp + 0x34]
mov ecx, ebx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x4c]
movsd qword [esp + 0x5c], xmm0
movsd qword [esp + 0x54], xmm1
movsd qword [esp + 0x4c], xmm2
push eax
call fcn.1005ff30
add esp, 4
cmp byte [esp + 8], 0
jne 0x1005fc6f
mov eax, dword [0x104dec50]
test eax, eax
jne 0x1005fdc0
mov edi, dword [ebp + 8]
mov eax, dword [0x104dec60]
test eax, eax
jne 0x1005fc99
mov ecx, 0x10421629
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f30b0
cmovne eax, edx
mov dword [0x104dec60], eax
cmp eax, 0x100f30b0
jne 0x1005fcae
mov eax, dword [edi]
mov byte [eax + 0x18], 0
push eax
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x1005fcd8
mov eax, dword [0x104dec78]
test eax, eax
jne 0x1005fcd5
mov ecx, 0x10421918
mov edx, 0x17
call fcn.100f2ce0
test eax, eax
mov eax, 0x100f4ef0
cmovne eax, edx
mov dword [0x104dec78], eax
push edi
call eax
xor ebx, ebx
lock dec dword [ebp]
jne 0x1005fce9
lea ecx, [esp + 0xc]
call fcn.10061ab0
test bl, bl
je 0x1005fcf6
lea ecx, [esp + 0x18]
call fcn.1005fe10
cmp dword [esi + 0xc], 2
je 0x1005fd03
mov ecx, esi
call fcn.1005fe10
cmp byte [esi + 0x1c], 2
jb 0x1005fd2f
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xc]
lea edx, [eax + 8]
push dword [eax + 4]
push dword [eax]
push edx
call dword [ecx + 4]
add esp, 0xc
mov edi, dword [esi + 0x20]
call sub.KERNEL32.dll_GetProcessHeap
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push ecx
call dword [eax + 4]
add esp, 0xc
mov eax, dword [esi + 0x34]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x1005fd58
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret
lock dec dword [eax + 4]
jne 0x1005fd4d
mov esi, dword [esi + 0x34]
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
jmp 0x1005fd4d
mov ecx, 0x104d4dc8
call fcn.10109c60
test al, al
jne 0x1005f9fb
jmp 0x1005fced
call fcn.100fa7c0
mov cl, byte [ebp + 0xc]
lea ebx, [ebp + 0xc]
test cl, cl
je 0x1005fdb9
test al, al
jne 0x1005fb0d
jmp 0x1005fb1a
call fcn.100fa7c0
test al, al
jne 0x1005fb1a
mov byte [ebx], 1
jmp 0x1005fb1a
xor al, 1
jmp 0x1005fb60
call fcn.100fa7c0
test al, al
jne 0x1005fc6f
mov eax, dword [esp + 4]
mov byte [eax], 1
jmp 0x1005fc6f
ud2
mov ecx, 0x1041992d
mov edx, 0x22
push 0x10419a3c
call fcn.1000a730
add esp, 4
ud2
mov ecx, 0x10
mov edx, 4
call fcn.10006540
ud2