Function at 0x413916
Capabilities:
Suspend thread

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x30]
mov ecx, eax
xor dword [esp + 0x24], 0xc1a
xor ecx, 0x15ed
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
lea edx, [eax + 0x190]
mov ebp, esi
mov dword [esp + 0xc], edx
xor ebp, 0x1958
mov dword [esp + 0x3c], ecx
mov ebx, eax
mov dword [esp + 0x10], ebp
xor ebx, 0xcb5
lea edx, [eax - 0x15ed]
push edi
lea edi, [esi - 0x3a0]
mov dword [esp + 0x1c], ebx
add esi, 0xfffffd83
mov dword [esp + 0x24], edi
lea eax, [ebp + 0x1872]
mov dword [esp + 0x18], esi
cmp ebx, eax
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x3c]
jl 0x413b5a
mov eax, edi
xor eax, 0x2da
cmp dword [esp + 0x34], eax
je 0x413ab3
lea eax, [esi + 0x87]
cmp edx, eax
je 0x413ab3
mov eax, ebp
xor eax, 0x16db
cmp edi, eax
je 0x413a0f
mov eax, dword [esp + 0x1c]
xor eax, 0xcfb
push eax
mov eax, esi
xor eax, 0x363
push eax
lea eax, [ecx + 0x19bd]
push eax
push dword [0x4a67bc]
mov eax, dword [esp + 0x44]
add eax, 0xfffffbea
push eax
lea eax, [edx + 0x1926]
push eax
lea eax, [edx + 0x16db]
push eax
call fcn.004046c7
mov ecx, dword [esp + 0x5c]
add esp, 0x1c
mov edx, dword [esp + 0x20]
add ecx, 0x1c14
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ecx
jmp 0x413ab3
mov ebp, dword [esp + 0x34]
or ebp, dword [esp + 0x10]
mov eax, dword [ebx + 0x64]
or ebp, edi
mov dword [esp + 0x3c], eax
cmp eax, ebp
jle 0x413aaf
mov edi, dword [esp + 0x14]
mov eax, dword [0x4bcad8]
and eax, dword [0x4bcac8]
cmp dword [ebx + 0xec], eax
jae 0x413a90
mov ecx, dword [0x4a67bc]
mov eax, dword [ebx + 0x38]
or eax, 0x1872
push eax
mov esi, dword [ecx + 0xbc]
mov edx, dword [ecx + 0x114]
add esi, dword [esp + 0x14]
xor edx, 0x1926
sub edx, dword [esp + 0x44]
and esi, dword [ebx + 0xa0]
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [ecx - 0x1b30]
push eax
lea eax, [ecx + 0x1b3b]
imul eax, edi
push eax
push edx
push esi
call fcn.00413b8f
add esp, 0x18
mov esi, eax
mov eax, dword [esp + 0x3c]
add eax, 3
mov dword [esp + 0x3c], eax
cmp eax, ebp
jg 0x413a2c
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], esi
mov ebp, dword [esp + 0x14]
cmp esi, dword [esp + 0x44]
jge 0x413b0b
mov eax, dword [ebx + 0x110]
cmp eax, dword [ebx + 0x34]
je 0x413ad5
mov ecx, dword [0x4a67bc]
mov eax, dword [ebx + 8]
add eax, 0x18c92b
or dword [ecx + 0x7c], eax
mov ecx, dword [esp + 0x10]
mov eax, edi
xor eax, 0x9ac
xor edx, 0x19bd
push eax
push edx
lea eax, [ecx - 0x159]
xor ebp, 0x1b30
push eax
lea eax, [ecx - 0x455]
push eax
lea eax, [ecx + 0xb]
push ebx
push eax
call fcn.004050dd
add esp, 0x18
jmp 0x413b5a
mov eax, dword [ebx + 0x120]
xor eax, dword [ebx + 0x58]
imul eax, eax, 0x1b30
cmp edi, eax
je 0x413b5a
add esi, ecx
cmp edi, esi
jge 0x413b5a
mov ecx, dword [esp + 0x18]
sub esi, edi
mov ebp, dword [esp + 0x40]
dec esi
shr esi, 2
inc esi
mov eax, dword [ebx + 0xd8]
xor eax, ecx
cmp edi, eax
jae 0x413b51
mov eax, ebp
xor eax, 0x1762
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [esp + 0x18]
sub esi, 1
jne 0x413b33
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
lea ecx, [ebp - 0x5f4]
xor edi, 0x1b
lea eax, [edx - 0x63c]
push eax
push ebx
push ebp
push edi
push ecx
lea ecx, [edx - 0x3d]
push ecx
call fcn.00414af0
mov eax, dword [esp + 0x34]
add esp, 0x18
xor eax, 0xe25
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret