Function at 0x46130c
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff1e8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 8], 0
je 0x46132c
test esi, esi
je 0x46132c
test edi, edi
jne 0x461333
xor eax, eax
jmp 0x46167a
cmp esi, 0x10000
jae 0x46134b
cmp dword [0x4d36d8], 1
jne 0x46134b
xor eax, eax
jmp 0x46167a
mov eax, dword [0x4eadf4]
test eax, eax
je 0x461393
cmp esi, dword [0x4eadf8]
jb 0x461393
lea edx, [edi + esi]
cmp edx, dword [0x4eadf8]
jbe 0x461393
lea ecx, [edi + esi]
cmp ecx, dword [0x4eadfc]
ja 0x461393
test byte [ebp + 0x14], 1
je 0x461393
push edi
sub esi, dword [0x4eadf8]
add esi, eax
push esi
mov eax, dword [ebp + 8]
push eax
call fcn.004a3530
add esp, 0xc
jmp 0x461678
cmp edi, 0x10
ja 0x4613f3
cmp dword [0x4d7c80], 0
je 0x4613f3
test byte [ebp + 0x14], 1
je 0x4613f3
xor ebx, ebx
mov eax, dword [0x4d7c80]
jmp 0x4613bd
cmp esi, dword [eax]
jne 0x4613b9
cmp edi, dword [eax + 4]
jbe 0x4613c5
inc ebx
add eax, 0x18
cmp ebx, dword [0x4d7c84]
jl 0x4613b0
cmp ebx, dword [0x4d7c84]
jge 0x4613f3
push edi
mov edx, ebx
shl edx, 3
lea edx, [edx + edx*2]
add edx, dword [0x4d7c80]
add edx, 8
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a3530
add esp, 0xc
mov eax, edi
jmp 0x46167a
cmp dword [0x4d5a5c], 3
je 0x46141d
cmp dword [0x4d8134], 0
je 0x46141d
cmp esi, dword [0x4d8148]
jae 0x46141d
lea edx, [edi + esi]
cmp edx, dword [0x4d8144]
jbe 0x46141d
call fcn.00418e24
push 0
push edi
mov ecx, dword [ebp + 8]
mov eax, dword [0x4d5a68]
push ecx
push esi
push eax
call sub.KERNEL32.DLL_ReadProcessMemory
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46144c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x42b
jne 0x46144c
xor eax, eax
jmp 0x46167a
cmp dword [ebp - 4], 0
jne 0x4615cf
cmp dword [0x4d5a14], 0
je 0x4615cf
cmp dword [0x4d5a18], 0
je 0x4615cf
cmp dword [0x4d5a5c], 3
jne 0x4614a6
mov edx, dword [0x4d7db0]
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4614a6
xor ebx, ebx
jmp 0x46149e
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xc]
push edx
call sub.KERNEL32.DLL_SuspendThread
inc ebx
add dword [ebp - 0x18], 0x66c
cmp ebx, dword [0x4d7d98]
jl 0x46148a
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
xor ecx, ecx
lea ebx, [ebp - 0xe18]
mov dword [ebp - 8], ecx
jmp 0x46152b
push 0x1c
lea ecx, [ebp - 0xe18]
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
mov edx, dword [0x4d5a68]
shl eax, 2
add eax, ecx
push eax
mov eax, dword [ebp - 0xc]
push eax
push edx
call dword [0x4d5a14]
test eax, eax
je 0x461540
mov edx, dword [ebx]
mov eax, edx
add eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [edi + esi]
cmp eax, dword [ebp - 0x10]
jae 0x461503
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, edx
mov dword [ebx + 0xc], ecx
lea edx, [ebp - 0x14]
mov ecx, dword [0x4d5a68]
push edx
push 2
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 0xc]
push edx
push ecx
call dword [0x4d5a18]
test eax, eax
je 0x461540
inc dword [ebp - 8]
add ebx, 0x1c
cmp dword [ebp - 8], 0x80
jge 0x461540
lea eax, [edi + esi]
cmp eax, dword [ebp - 0x10]
ja 0x4614b9
push 0
push edi
mov edx, dword [ebp + 8]
mov ecx, dword [0x4d5a68]
push edx
push esi
push ecx
call sub.KERNEL32.DLL_ReadProcessMemory
mov dword [ebp - 4], eax
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
mov edx, eax
shl eax, 3
sub eax, edx
cmp dword [ebp - 8], 0
lea ebx, [ebp + eax*4 - 0xe18]
jl 0x461599
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebx + 0x14]
push edx
mov edx, dword [0x4d5a68]
mov ecx, dword [ebx + 0xc]
push ecx
mov eax, dword [ebx]
push eax
push edx
call dword [0x4d5a18]
dec dword [ebp - 8]
add ebx, 0xffffffe4
cmp dword [ebp - 8], 0
jge 0x461571
cmp dword [0x4d5a5c], 3
jne 0x4615cf
mov ecx, dword [0x4d7db0]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4615cf
xor ebx, ebx
jmp 0x4615c7
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xc]
push edx
call sub.KERNEL32.DLL_ResumeThread
inc ebx
add dword [ebp - 0x18], 0x66c
cmp ebx, dword [0x4d7d98]
jl 0x4615b3
cmp dword [ebp - 4], 0
jne 0x4615f4
test byte [ebp + 0x14], 2
jne 0x4615ed
add edi, esi
dec edi
push edi
push esi
push 0x4bc449
call sym.Cari___.exe__Error
add esp, 0xc
xor eax, eax
jmp 0x46167a
test byte [ebp + 0x14], 1
je 0x461678
push edi
push esi
mov edx, dword [ebp + 8]
push edx
call fcn.00419e70
add esp, 0xc
cmp dword [0x4eadf4], 0
je 0x461678
cmp edi, 0x10
ja 0x461678
cmp dword [0x4d7c80], 0
je 0x461678
cmp dword [0x4d7c84], 0x400
jge 0x461678
mov ecx, dword [0x4d7c84]
mov eax, dword [0x4d7c80]
lea ecx, [ecx + ecx*2]
mov dword [eax + ecx*8], esi
mov edx, dword [0x4d7c84]
mov ecx, dword [0x4d7c80]
lea edx, [edx + edx*2]
mov dword [ecx + edx*8 + 4], edi
push edi
mov edx, dword [0x4d7c84]
mov eax, dword [ebp + 8]
shl edx, 3
push eax
lea edx, [edx + edx*2]
add edx, dword [0x4d7c80]
add edx, 8
push edx
call fcn.004a3530
add esp, 0xc
inc dword [0x4d7c84]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret