Function at 0x10039b00
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a525
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x148
mov eax, dword [0x1008600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0xb8], edi
mov eax, ecx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xcc], 0
mov dword [ebp - 4], 2
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, dword [0x10086b4c]
mov dword [ebp - 0xcc], 1
mov dword [ebp - 0xf8], eax
cmp eax, 0xffffffff
jne 0x10039c33
push 0
push 4
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10039c28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.10039410
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x10039c21
mov edi, dword [eax]
xor edx, edx
test edi, edi
je 0x10039c12
lea ecx, [eax + 8]
nop word [eax + eax]
movq xmm0, qword [ecx + 0x10]
mov eax, dword [ecx + 0x18]
movq qword [ebp - 0x88], xmm0
mov dword [ebp - 0x80], eax
cmp esi, dword [ecx]
je 0x10039c01
inc edx
add ecx, 0x1c
cmp edx, edi
jb 0x10039be0
jmp 0x10039c0c
mov eax, dword [ebp - 0x88]
mov dword [0x10086b4c], eax
mov eax, dword [ebp - 0xb4]
push eax
call fcn.1004eb4e
mov edi, dword [ebp - 0xb8]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x10086b4c]
mov dword [ebp - 0xf8], eax
call fcn.100399b0
sub esp, 0x18
mov dword [ebp - 0xfc], eax
lea eax, [ebx + 8]
mov ecx, esp
push eax
call fcn.10003b10
mov edx, edi
lea ecx, [ebp - 0x64]
call fcn.1003bb70
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
push 0xf
xor eax, eax
mov dword [ebp - 0x7c], 0
push str.__typerenderer
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
call fcn.10003e30
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
sub esp, 0x18
mov edi, eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0xb8], edi
mov ecx, esp
push eax
call fcn.10003b10
lea edx, [ebx + 0x20]
lea ecx, [ebp - 0xf4]
call fcn.10039510
add esp, 0x18
mov byte [ebp - 4], 5
mov eax, 0x75ded953
mov ecx, dword [ebp - 0xf0]
mov esi, dword [ebp - 0xf4]
sub ecx, esi
imul ecx
mov dword [ebp - 0xd8], 0
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1003a7a7
xor edi, edi
nop dword [eax]
imul eax, edi, 0x22c
mov esi, dword [eax + esi + 8]
mov ecx, esi
call fcn.10039410
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x1003a773
cmp dword [eax], 0
je 0x1003a773
push esi
push 0
push 0x440
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xd4], eax
cmp eax, 0xffffffff
je 0x1003a773
xor eax, eax
xor edi, edi
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xe0], eax
xor esi, esi
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 7
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp - 0xa4]
cmp dword [ecx], edx
jbe 0x1003a15f
lea eax, [ecx + 8]
mov esi, ecx
mov dword [ebp - 0xa8], eax
nop dword [eax]
nop word [eax + eax]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x148], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x138], xmm0
mov eax, dword [ebp - 0x138]
cmp eax, dword [ebp - 0xf8]
sete cl
mov byte [ebp - 0xad], cl
cmp eax, dword [ebp - 0xfc]
je 0x10039ddc
test cl, cl
je 0x1003a123
push 2
push 0
push 0
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
push eax
push dword [ebp - 0xb8]
push dword [ebp - 0x148]
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1003a11d
cmp byte [ebp - 0xad], 0
je 0x10039f47
mov eax, dword [ebp - 0x13c]
and eax, 7
cmp al, 7
je 0x10039e3e
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003a11d
push 0
push 0
push 0
push 4
push dword [ebp - 0x9c]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
lea eax, [ebp - 0x30]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10039ea5
cmp dword [ebp - 0x24], 0x10000
jne 0x10039ea5
mov eax, 0x3ff7
xorps xmm1, xmm1
nop dword [eax]
movss xmm0, dword [esi + eax*4 + 0x20]
comiss xmm0, xmm1
ja 0x10039ebd
comiss xmm1, xmm0
ja 0x10039ebd
sub eax, 1
jns 0x10039e90
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1003a117
lea edi, [eax*4 + 4]
test edi, edi
jle 0x10039ea5
mov ecx, edi
call fcn.10038960
test eax, eax
je 0x10039ea5
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], edi
cmp edx, dword [ebp - 0xb4]
je 0x10039f23
movups xmm0, xmmword [ebp - 0x12c]
mov esi, dword [ebp - 0xa4]
movups xmmword [edx], xmm0
add edx, 0x10
mov dword [ebp - 0xc0], edx
jmp 0x1003a123
lea eax, [ebp - 0x12c]
push eax
push edx
lea ecx, [ebp - 0xc4]
call fcn.1003cdb0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xb4], eax
jmp 0x1003a117
push 0x210
call fcn.1004f6a4
add esp, 4
mov esi, eax
mov dword [ebp - 0xac], esi
push 0x20c
lea eax, [esi + 4]
push 0
push eax
call fcn.100472b0
add esp, 0xc
mov dword [esi], 0x104
push 0x210
push esi
push 2
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x1003a102
add esi, 4
mov dword [ebp - 0x2c], 0
mov ecx, esi
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039fb4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10003e30
mov byte [ebp - 4], 8
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x64]
cmp edi, 8
push dword [ebp - 0x54]
mov esi, dword [ebp - 0x2c]
cmovae ecx, esi
mov edx, dword [ebp - 0x1c]
push eax
push ecx
call fcn.100040c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x1003a0c4
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.10003b10
mov ecx, dword [ebp - 0x148]
or dword [ebp - 0xcc], 2
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0xe0]
je 0x1003a070
movups xmm0, xmmword [ebp - 0x4c]
mov dword [eax], 0
xor esi, esi
mov dword [eax + 0x10], 0
mov edx, 7
mov dword [eax + 0x14], 0
movups xmmword [eax], xmm0
mov word [ebp - 0x4c], si
movq xmm0, qword [ebp - 0x3c]
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], ecx
add eax, 0x1c
mov dword [ebp - 0xe4], eax
jmp 0x1003a083
lea ecx, [ebp - 0x4c]
push ecx
push eax
lea ecx, [ebp - 0xe8]
call fcn.1003cf10
mov edx, dword [ebp - 0x38]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x1003a0be
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a0b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 7
cmp edi, 8
jb 0x1003a0fc
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x1003a0f2
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push edi
push esi
call fcn.10041ac4
add esp, 8
mov esi, dword [ebp - 0xac]
push esi
call fcn.1004eb4e
add esp, 4
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa8]
inc ecx
add eax, 0x1c
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa8], eax
cmp ecx, dword [esi]
jb 0x10039da0
mov esi, dword [ebp - 0xc4]
mov edi, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xac], esi
mov ecx, edx
sub ecx, esi
mov esi, ecx
mov dword [ebp - 0xa0], ecx
sar esi, 4
cmp esi, 1
jne 0x1003a242
mov ecx, edi
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jne 0x1003a23c
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp - 0xe8]
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 8]
push eax
push ecx
lea ecx, [ebp - 0x150]
call fcn.1003ca50
add esp, 0xc
mov edx, eax
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0xd0]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x1003a1f7
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dword [edx], 0
mov dword [edx + 4], 0
add dword [esi + 4], 8
jmp 0x1003a200
push edx
push ecx
mov ecx, esi
call fcn.100204d0
mov esi, dword [ebp - 0x14c]
test esi, esi
je 0x1003a6e5
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1003a6e5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1003a6e5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x1003a6e5
mov edx, dword [ebp - 0xc0]
cmp dword [ebp - 0xac], edx
je 0x1003a6e5
mov eax, dword [ebp - 0xe8]
cmp eax, edi
je 0x1003a6e5
push ecx
push edi
push eax
lea ecx, [ebp - 0x10c]
call fcn.1003cbc0
mov byte [ebp - 4], 0xb
xor eax, eax
xor edi, edi
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x118], eax
xor ecx, ecx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x114], ecx
cmp eax, 0x10
jb 0x1003a338
cmp esi, 0xfffffff
ja 0x1003a957
shl esi, 4
cmp esi, 0x1000
jb 0x1003a2e5
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x1003a952
push eax
call fcn.10041665
add esp, 4
test eax, eax
je 0x1003a94d
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
mov eax, dword [ebp - 0xa0]
jmp 0x1003a304
test esi, esi
je 0x1003a302
push esi
call fcn.10041665
mov edi, eax
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa0]
add esp, 4
jmp 0x1003a30a
xor edi, edi
mov dword [ebp - 0xa8], edi
push eax
push dword [ebp - 0xac]
add esi, edi
mov dword [ebp - 0x11c], edi
mov ecx, esi
mov dword [ebp - 0x9c], esi
push edi
mov dword [ebp - 0x114], ecx
call fcn.10047500
add esp, 0xc
mov dword [ebp - 0x118], esi
jmp 0x1003a33a
xor esi, esi
mov ecx, esi
sub ecx, edi
sar ecx, 4
mov esi, ecx
mov dword [ebp - 0xa0], ecx
sar esi, 1
test esi, esi
jle 0x1003a38f
mov eax, esi
shl eax, 4
add eax, edi
movups xmm0, xmmword [eax - 0x10]
sub eax, 0x10
dec esi
push dword [ebp - 0xdc]
mov dword [ebp - 0xc8], eax
mov edx, esi
lea eax, [ebp - 0x40]
push eax
push ecx
mov ecx, edi
movups xmmword [ebp - 0x40], xmm0
call fcn.1003dda0
mov eax, dword [ebp - 0xc8]
add esp, 0xc
mov ecx, dword [ebp - 0xa0]
test esi, esi
jg 0x1003a356
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x10c]
lea ecx, [ebp - 0x98]
push esi
call fcn.10003b10
mov esi, dword [esi + 0x18]
mov dword [ebp - 0x80], esi
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x108]
mov ecx, eax
mov edx, dword [ebp - 0x10c]
sub ecx, edx
mov dword [ebp - 0xa0], eax
mov eax, 0x92492493
mov dword [ebp - 0xc8], edx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jl 0x1003a4ac
mov edi, dword [ebp - 0xa0]
xor eax, eax
mov ecx, dword [ebp - 0xc8]
add edi, 0xffffffe4
push ecx
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x18]
mov ecx, edi
movq qword [ebp - 0x20], xmm0
mov dword [edi + 0x18], eax
call fcn.10026940
push dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xc8]
lea eax, [ebp - 0x30]
push eax
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor edx, edx
push eax
call fcn.1003dc90
mov edx, dword [ebp - 0x1c]
add esp, 0xc
cmp edx, 8
jb 0x1003a498
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a48e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov eax, dword [ebp - 0x108]
mov edi, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], eax
jmp 0x1003a4b2
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax - 8]
cmp ecx, 8
jb 0x1003a4f2
mov eax, dword [eax - 0x1c]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1003a4e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
mov eax, edx
push ecx
push eax
call fcn.10041ac4
mov eax, dword [ebp - 0xa0]
add esp, 8
xor ecx, ecx
mov dword [eax - 0xc], 0
mov word [eax - 0x1c], cx
mov dword [eax - 8], 7
mov ecx, dword [ebp - 0x108]
add ecx, 0xffffffe4
mov dword [ebp - 0x108], ecx
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x40], xmm0
psrldq xmm0, 4
movd eax, xmm0
cmp eax, esi
mov esi, dword [ebp - 0x9c]
jl 0x1003a54b
cmp dword [ebp - 0x10c], ecx
jne 0x1003a62b
mov eax, esi
sub eax, edi
sar eax, 4
cmp eax, 1
jne 0x1003a62b
mov eax, esi
sub eax, edi
and eax, 0xfffffff0
cmp eax, 0x20
jl 0x1003a584
movups xmm0, xmmword [esi - 0x10]
lea eax, [esi - 0x10]
xor edx, edx
push dword [ebp - 0xdc]
movups xmmword [ebp - 0x24], xmm0
lea ecx, [ebp - 0x24]
movups xmm0, xmmword [edi]
push ecx
mov ecx, edi
movups xmmword [eax], xmm0
sub eax, edi
sar eax, 4
push eax
call fcn.1003dda0
add esp, 0xc
lea eax, [ebp - 0x34]
sub esi, 0x10
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x9c], esi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x118], esi
push eax
lea edx, [ebp - 0x98]
lea ecx, [ebp - 0x158]
call fcn.1003ca50
add esp, 0xc
mov edx, eax
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0xd0]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x1003a5f1
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov dword [edx], 0
mov dword [edx + 4], 0
add dword [esi + 4], 8
jmp 0x1003a5fa
push edx
push ecx
mov ecx, esi
call fcn.100204d0
mov esi, dword [ebp - 0x154]
test esi, esi
je 0x1003a625
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1003a625
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1003a625
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x9c]
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x84]
cmp edx, 8
jb 0x1003a66f
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a665
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x108]
je 0x1003a685
cmp edi, esi
jne 0x1003a393
mov byte [ebp - 4], 0xb
mov eax, edi
mov ecx, dword [ebp - 0x114]
sub ecx, edi
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x1003a6b2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push ecx
push edi
call fcn.10041ac4
add esp, 8
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
call fcn.1003c9d0
push dword [ebp - 0xd4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa4]
call fcn.1004eb4e
mov ecx, dword [ebp - 0xac]
add esp, 4
mov byte [ebp - 4], 6
test ecx, ecx
je 0x1003a75e
mov edx, dword [ebp - 0xb4]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffff0
cmp edx, 0x1000
jb 0x1003a736
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 5
call fcn.1003c9d0
mov edi, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xf0]
mov eax, 0x75ded953
mov esi, dword [ebp - 0xf4]
inc edi
sub ecx, esi
mov dword [ebp - 0xd8], edi
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10039cf0
mov edi, dword [ebp - 0xb8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xf4]
test esi, esi
je 0x1003a81d
mov ecx, dword [ebp - 0xec]
mov eax, 0x75ded953
sub ecx, esi
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
imul ecx, eax, 0x22c
mov eax, esi
cmp ecx, 0x1000
jb 0x1003a7f5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push ecx
push esi
call fcn.10041ac4
add esp, 8
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x1003a857
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a84d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x1003a891
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a887
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov edx, dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
cmp edx, 8
jb 0x1003a8df
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a8d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov edx, dword [ebx + 0x34]
xor eax, eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 7
mov word [ebx + 8], ax
cmp edx, 8
jb 0x1003a929
mov ecx, dword [ebx + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a91f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a94d
push edx
push ecx
call fcn.10041ac4
add esp, 8
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004144e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1004a021
call fcn.10002830
call fcn.1000cca0
int3