Function at 0x1004bf81
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081d14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push esi
push edi
mov dword [ebp - 0x3c], 0
push 3
lea ecx, [ebp - 0x38]
call fcn.10016697
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xfffffff6
lea eax, [ebp - 0x38]
push eax
push 0
push 0x5a0b
push 0x26d7
push 0x1e65
lea eax, [ebp - 0x2c]
push eax
push 0x14ef
call fcn.10049cb1
add esp, 0x1c
mov dword [ebp - 0x2c], 0
jmp 0x1004bff3
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x1004c006
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0x20], 0xda7da9fc
jmp 0x1004bfec
mov eax, 0x551da622
test eax, eax
je 0x1004c01e
cmp dword [ebp - 0x3c], 0
je 0x1004c01e
mov dword [ebp - 0x44], 1
jmp 0x1004c022
and dword [ebp - 0x44], 0
push 0
lea ecx, [ebp - 0x38]
call fcn.10016738
mov ecx, dword [ebp - 0x44]
mov dword [eax], ecx
cmp dword [ebp - 0x44], 0
je 0x1004c05b
push 0
lea ecx, [ebp - 0x38]
call fcn.10016738
imul eax, dword [eax], 0x7adf
test eax, eax
je 0x1004c05b
push 0xfffffffffffffff6
pop eax
test eax, eax
je 0x1004c05b
mov dword [ebp - 0x4c], 1
jmp 0x1004c05f
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x4c], eax
je 0x1004c073
mov dword [ebp - 0x90], 1
jmp 0x1004c07a
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x90]
jle 0x1004c091
mov dword [ebp - 0x94], 1
jmp 0x1004c098
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc4], eax
xor eax, eax
je 0x1004c11a
mov dword [ebp - 0xb0], 0x16488a
push 0x3f5d
push 1
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x14b2
lea eax, [ebp - 0x38]
push eax
call fcn.10049cb1
add esp, 0x1c
mov dword [ebp - 0x10], 0
jmp 0x1004c0e6
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jg 0x1004c115
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.1004b03d
pop ecx
pop ecx
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x1004c113
push 1
push 0x5c92
call fcn.1004b03d
pop ecx
pop ecx
jmp 0x1004c0df
jmp 0x1004c49e
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], 0x879b6842
mov dword [ebp - 0x10], 2
jmp 0x1004c13f
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x1004c322
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc0], eax
mov esi, dword [ebp - 0x14]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.10016738
cmp esi, dword [eax]
jge 0x1004c170
cmp dword [ebp - 0x14], 0
jne 0x1004c170
and dword [ebp - 0x40], 0
jmp 0x1004c177
mov dword [ebp - 0x40], 1
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp + eax - 0x20], ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.10016738
mov esi, dword [ebp - 0x40]
add esi, dword [eax]
push 0
lea ecx, [ebp - 0x38]
call fcn.10016738
sub esi, dword [eax]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.10016738
sub esi, dword [eax]
cmp esi, dword [ebp - 0x14]
jge 0x1004c1be
mov dword [ebp - 0x88], 1
jmp 0x1004c1c5
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x88]
jne 0x1004c1dc
mov dword [ebp - 0xac], 1
jmp 0x1004c1e3
and dword [ebp - 0xac], 0
push 1
lea ecx, [ebp - 0x38]
call fcn.10016738
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.10016738
mov ecx, dword [ebp - 0x14]
cmp dword [eax], ecx
jne 0x1004c208
mov dword [ebp - 0x54], 1
jmp 0x1004c20c
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 9
jge 0x1004c224
mov dword [ebp - 0xa4], 1
jmp 0x1004c22b
and dword [ebp - 0xa4], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.10016738
mov ecx, dword [ebp - 0x14]
cmp dword [eax], ecx
jle 0x1004c249
mov dword [ebp - 0x84], 1
jmp 0x1004c250
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x84]
jne 0x1004c273
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x20], 0
jne 0x1004c273
xor eax, eax
inc eax
jne 0x1004c273
and dword [ebp - 0x5c], 0
jmp 0x1004c27a
mov dword [ebp - 0x5c], 1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.10016738
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [eax]
jne 0x1004c295
mov dword [ebp - 0x7c], 1
jmp 0x1004c299
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xc499
jg 0x1004c2be
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x20], 0
je 0x1004c2be
mov dword [ebp - 0x64], 1
jmp 0x1004c2c2
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x64], eax
jg 0x1004c2db
xor eax, eax
inc eax
je 0x1004c2db
mov dword [ebp - 0x8c], 1
jmp 0x1004c2e2
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x8c]
jne 0x1004c2f9
cmp dword [ebp - 0x10], 0
jne 0x1004c2f9
and dword [ebp - 0x48], 0
jmp 0x1004c300
mov dword [ebp - 0x48], 1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.10016738
mov esi, dword [eax]
sub esi, dword [ebp - 0x48]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
call fcn.10016738
mov dword [eax], esi
jmp 0x1004c138
mov dword [ebp - 0x14], 0
jmp 0x1004c332
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 9
jne 0x1004c49e
push 1
lea ecx, [ebp - 0x74]
call fcn.10016697
mov byte [ebp - 4], 1
push 0x57e7
push 0x5b36
push 0
lea eax, [ebp - 0x74]
push eax
push 0x73d0
push 0x756e
lea eax, [ebp - 0xc8]
push eax
push 0x73ae
call fcn.1004bdf1
add esp, 0x20
mov dword [ebp - 0x24], 0xfffffff6
mov esi, dword [ebp - 0x24]
push 0
lea ecx, [ebp - 0x74]
call fcn.10016738
cmp esi, dword [eax]
jle 0x1004c399
mov dword [ebp - 0x68], 1
jmp 0x1004c39d
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], eax
jg 0x1004c3ae
mov dword [ebp - 0x50], 1
jmp 0x1004c3b2
and dword [ebp - 0x50], 0
push 0
lea ecx, [ebp - 0x74]
call fcn.10016738
mov ecx, dword [ebp - 0x50]
sub ecx, dword [eax]
jne 0x1004c3d8
push 0
lea ecx, [ebp - 0x74]
call fcn.10016738
cmp dword [eax], 0
jne 0x1004c3d8
and dword [ebp - 0x58], 0
jmp 0x1004c3df
mov dword [ebp - 0x58], 1
push 0
lea ecx, [ebp - 0x38]
call fcn.10016738
mov ecx, dword [ebp - 0x58]
sub ecx, dword [eax]
cmp ecx, 0x49af
je 0x1004c3ff
mov dword [ebp - 0x60], 1
jmp 0x1004c403
and dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0x839ca31b
jb 0x1004c415
mov dword [ebp - 0x78], 1
jmp 0x1004c419
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x78]
je 0x1004c42d
mov dword [ebp - 0x80], 1
jmp 0x1004c431
and dword [ebp - 0x80], 0
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x20], 0xf913
mov eax, dword [ebp - 0x80]
add eax, 0xf913
mov dword [ebp - 0x1c], eax
je 0x1004c46b
push 0
lea ecx, [ebp - 0x74]
call fcn.10016738
cmp dword [eax], 0
je 0x1004c469
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.1001671c
jmp 0x1004c49e
jmp 0x1004c479
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x20], 6
cmp dword [ebp - 0x24], 0
je 0x1004c48d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.1001671c
jmp 0x1004c49e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.1001671c
jmp 0x1004c32b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1001671c
push 1
lea eax, [ebp - 0xe0]
push eax
xor edx, edx
inc edx
xor ecx, ecx
call fcn.10049507
pop ecx
pop ecx
mov esi, eax
lea edi, [ebp - 0xd4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0xd4]
lea edi, [ebp - 0xbc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0xa0], 0xfffffffb
mov dword [ebp - 0x9c], 0xb80ebbd4
mov dword [ebp - 0x28], 0
jmp 0x1004c504
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x11
jl 0x1004c554
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x98], 0x1f1eb32a
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x1bad
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x1757
lea eax, [ebp - 0x9c]
push eax
call fcn.1004bdf1
add esp, 0x20
jmp 0x1004c4fd
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x1004c568
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [ebp - 0xbc], 0
je 0x1004c585
push 2
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
call dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret