Function at 0x41ce00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f6c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebx + 0xf694]
mov dword [ebp - 0x20], esi
cmp esi, dword [eax + 0x1c]
jge 0x41ce4d
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx + 0x2c]
test eax, eax
jne 0x41ce4d
inc esi
jmp 0x41ce2f
mov edx, dword [ebx + 0xf694]
cmp esi, dword [edx + 0x1c]
jne 0x41ce6d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebx + 0xf690]
mov ecx, 0x1c
xor eax, eax
push 0x24
rep stosd dword es:[edi], eax
call fcn.00567b03
mov ecx, dword [ebx + 0xf690]
add esp, 4
mov dword [ecx], eax
mov edx, dword [ebx + 0xf694]
mov ecx, dword [ebx + 0xf690]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + esi*4]
mov dword [ecx + 4], edx
mov edi, dword [ebx + 0xf690]
xor ecx, ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x14]
cmp al, 2
sete cl
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xf690]
mov edi, dword [ebp + 8]
mov edx, dword [eax + 8]
neg edx
sbb edx, edx
and edx, 0xfffffffa
add edx, 6
mov dword [eax + 0x90], edx
mov eax, dword [ebx + 0xf690]
mov dword [eax + 0x5c], 0xffffffff
xor eax, eax
cmp edi, eax
je 0x41ceed
mov dword [0x5fe8bc], eax
cmp eax, dword [ebx + 0x16c]
jge 0x41cf62
mov ecx, dword [ebx + 0xf694]
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx + esi*4]
mov esi, dword [ebx + 0x168]
mov edx, dword [ecx + 0x30]
lea ecx, [eax + eax*8]
shl ecx, 3
sub ecx, eax
lea ecx, [esi + ecx*8]
cmp edx, dword [ecx + 0x224]
jne 0x41cf9b
mov edx, dword [ebx + 0x33b0]
add ecx, 0x110
add edx, 0x57ee
push edx
push ecx
call fcn.0043a7f0
mov eax, dword [ebx + 0x33b0]
mov ecx, dword [ebx + 0xf690]
add esp, 8
add eax, 0x57ee
add ecx, 0x94
push 0x104
push eax
push ecx
call fcn.0043a0b0
mov esi, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebx + 0xf690]
mov eax, dword [edx + 8]
test eax, eax
je 0x41d263
lea ecx, [ebp - 0x64]
call fcn.00548510
mov eax, dword [0x5f9f88]
mov dword [ebp - 0x24], eax
mov edx, dword [ebx + 0xf690]
mov byte [ebp - 4], 2
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41cfa4
mov eax, ecx
jmp 0x41cfa7
mov esi, dword [ebp - 0x20]
inc eax
jmp 0x41ceed
mov eax, dword [eax + 0x10]
add edx, 0x94
push eax
lea ecx, [ebp - 0x168]
push edx
push ecx
call fcn.0043a910
add esp, 0xc
lea edx, [ebp - 0x168]
lea ecx, [ebp - 0x24]
push edx
call fcn.00568895
mov eax, dword [ebp - 0x24]
push 0
push eax
lea ecx, [ebp - 0x64]
call fcn.005485d3
xor edi, edi
test eax, eax
je 0x41cffd
lea ecx, [ebp - 0x64]
call fcn.005487f3
mov edx, dword [ebp - 0x64]
push 0x10
lea ecx, [ebp - 0x64]
call dword [edx + 0x38]
test eax, eax
je 0x41cffd
mov edi, 1
lea ecx, [ebp - 0x64]
call fcn.00548589
test edi, edi
jne 0x41d02e
mov eax, dword [ebx + 0xf690]
push 0x104
lea ecx, [eax + 0x94]
add eax, 0x198
push ecx
push eax
call fcn.0043a0b0
add esp, 0xc
jmp 0x41d245
mov edx, dword [ebx + 0xf690]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41d042
mov eax, ecx
jmp 0x41d045
mov eax, dword [eax + 0x10]
push ebx
push 0x5e64d8
push 0x80006
push eax
push 0
push 0
lea ecx, [ebp - 0x360]
call fcn.00563fb7
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
lea ecx, [ebp - 0x360]
sbb eax, eax
and eax, 0xc
add eax, 0x4c
mov dword [ebp - 0x304], eax
call fcn.00564119
cmp eax, 1
jne 0x41d227
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x360]
push eax
call fcn.005641f4
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.004cd640
add esp, 8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0056870c
lea edx, [ebp + 8]
lea ecx, [ebp - 0x360]
push edx
call fcn.005641f4
mov ecx, dword [ebx + 0x33b0]
mov eax, dword [eax]
add ecx, 0x57ee
mov byte [ebp - 4], 7
push ecx
push eax
call fcn.0043a7f0
add esp, 8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.0056870c
mov edx, dword [ebx + 0x33b0]
mov eax, dword [ebx + 0xf690]
add edx, 0x57ee
push 0x104
add eax, 0x94
push edx
push eax
call fcn.0043a0b0
mov eax, dword [ebx + 0xf690]
add esp, 0xc
lea ecx, [eax + 0x94]
push 0x104
add eax, 0x198
push ecx
push eax
call fcn.0043a0b0
add esp, 0xc
xor ecx, ecx
cmp ecx, dword [ebx + 0x16c]
jge 0x41d21b
mov edx, dword [ebx + 0xf694]
mov edi, dword [ebx + 0x168]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + esi*4]
lea eax, [ecx + ecx*8]
shl eax, 3
mov edx, dword [edx + 0x30]
sub eax, ecx
shl eax, 3
mov dword [ebp + 8], eax
cmp edx, dword [eax + edi + 0x224]
jne 0x41d25d
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x360]
push eax
call fcn.005641f4
mov ecx, dword [ebx + 0x168]
mov edx, dword [ebp + 8]
mov edi, dword [eax]
xor eax, eax
lea edx, [edx + ecx + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1c]
call fcn.0056870c
mov ecx, dword [ebx + 0x168]
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
xor eax, eax
lea edx, [edx + ecx + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xf694]
mov edi, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
mov esi, dword [edx + eax*4]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41d20f
push eax
call fcn.00550d49
add esp, 4
push edi
call fcn.00554ec0
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0056870c
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 8
call fcn.0056870c
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 2
call fcn.00567cd3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.0056870c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x41d6fb
inc ecx
jmp 0x41d13e
test edi, edi
jne 0x41d700
mov eax, dword [0x5fe8bc]
test eax, eax
jne 0x41d700
lea ecx, [ebp - 0x48]
call fcn.00548510
mov ecx, dword [0x5f9f88]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebx + 0xf690]
mov byte [ebp - 4], 0xa
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41d2a1
mov eax, ecx
jmp 0x41d2a4
mov eax, dword [eax + 0x10]
add edx, 0x94
push eax
push edx
lea edx, [ebp - 0x26c]
push edx
call fcn.0043a910
add esp, 0xc
lea eax, [ebp - 0x26c]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00568895
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
lea ecx, [ebp - 0x48]
call fcn.005485d3
xor edi, edi
test eax, eax
je 0x41d2fa
lea ecx, [ebp - 0x48]
call fcn.005487f3
mov edx, dword [ebp - 0x48]
push 0x10
lea ecx, [ebp - 0x48]
call dword [edx + 0x38]
test eax, eax
jne 0x41d2fa
mov edi, 1
lea ecx, [ebp - 0x48]
call fcn.00548589
test edi, edi
je 0x41d6e8
mov ecx, ebx
call fcn.00432530
test eax, eax
jne 0x41d6de
push ebx
lea ecx, [ebp - 0x100]
call fcn.004beda0
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push 0x5e943c
push ecx
mov byte [ebp - 4], 0xb
call fcn.00568a15
push 0x5e941c
lea edx, [ebp + 8]
push eax
push edx
mov byte [ebp - 4], 0xc
call fcn.005689a1
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xd
call fcn.00568845
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call fcn.0056870c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.0056870c
lea ecx, [ebp - 0x100]
call fcn.00568092
mov edi, eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xf
call fcn.0056870c
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xe
call fcn.00575406
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0xa
call fcn.00567cd3
cmp edi, 7
jne 0x41d673
mov eax, dword [0x5f9f88]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx + 0xf690]
mov byte [ebp - 4], 0x10
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41d3d3
mov eax, ecx
jmp 0x41d3d6
mov eax, dword [eax + 0x10]
lea edx, [ebp + 8]
push eax
push edx
call fcn.004cd730
add esp, 8
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call fcn.00568845
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x10
call fcn.0056870c
mov eax, dword [ebp - 0x14]
push 0x5fe7d8
push eax
call fcn.005503ed
mov ecx, dword [ebp - 0x14]
add esp, 8
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebx + 0xf690]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x41d42a
mov ecx, edx
jmp 0x41d42d
mov ecx, dword [ecx + 0x10]
push ebx
push 0x5e64d8
push 0x80006
push ecx
push eax
push 0
lea ecx, [ebp - 0x558]
call fcn.00563fb7
mov byte [ebp - 4], 0x12
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
lea ecx, [ebp - 0x558]
sbb eax, eax
and eax, 0xc
add eax, 0x4c
mov dword [ebp - 0x4fc], eax
call fcn.00564119
cmp eax, 1
jne 0x41d616
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x558]
push edx
call fcn.005641f4
mov eax, dword [eax]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004cd640
add esp, 8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x15
call fcn.0056870c
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x558]
call fcn.005641f4
mov edx, dword [ebx + 0x33b0]
mov eax, dword [eax]
add edx, 0x57ee
mov byte [ebp - 4], 0x16
push edx
push eax
call fcn.0043a7f0
add esp, 8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x15
call fcn.0056870c
mov eax, dword [ebx + 0x33b0]
mov ecx, dword [ebx + 0xf690]
add eax, 0x57ee
push 0x104
add ecx, 0x94
push eax
push ecx
call fcn.0043a0b0
mov eax, dword [ebx + 0xf690]
add esp, 0xc
lea edx, [eax + 0x94]
push 0x104
add eax, 0x198
push edx
push eax
call fcn.0043a0b0
add esp, 0xc
xor ecx, ecx
cmp ecx, dword [ebx + 0x16c]
jge 0x41d602
mov eax, dword [ebx + 0xf694]
mov edi, dword [ebx + 0x168]
mov edx, dword [eax + 0x18]
mov eax, dword [edx + esi*4]
mov edx, dword [eax + 0x30]
lea eax, [ecx + ecx*8]
shl eax, 3
sub eax, ecx
shl eax, 3
mov dword [ebp + 8], eax
cmp edx, dword [eax + edi + 0x224]
jne 0x41d610
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x558]
call fcn.005641f4
mov edi, dword [eax]
mov edx, dword [ebx + 0x168]
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
lea edx, [eax + edx + 0x110]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2c]
call fcn.0056870c
mov ecx, dword [ebx + 0x168]
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
xor eax, eax
lea edx, [edx + ecx + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0xf694]
mov edi, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
mov esi, dword [edx + eax*4]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41d5f6
push eax
call fcn.00550d49
add esp, 4
push edi
call fcn.00554ec0
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x12
call fcn.0056870c
jmp 0x41d647
inc ecx
jmp 0x41d525
mov eax, dword [ebx + 0xf690]
test eax, eax
je 0x41d647
cmp dword [eax], 0
je 0x41d647
mov eax, dword [eax + 0x60]
test eax, eax
je 0x41d633
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebx + 0xf690]
cmp dword [ecx], 0
je 0x41d647
push 1
mov ecx, ebx
call fcn.0041fce0
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0x17
call fcn.0056870c
lea ecx, [ebp - 0x558]
mov byte [ebp - 4], 0x10
call fcn.00567cd3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.0056870c
jmp 0x41d6e8
cmp edi, 2
jne 0x41d6d9
mov eax, dword [ebx + 0xf690]
test eax, eax
je 0x41d6a9
cmp dword [eax], 0
je 0x41d6a9
mov eax, dword [eax + 0x60]
test eax, eax
je 0x41d695
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebx + 0xf690]
cmp dword [edx], 0
je 0x41d6a9
push 1
mov ecx, ebx
call fcn.0041fce0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.0056870c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.0054854d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp edi, 4
jne 0x41d6e8
mov dword [0x5fe8bc], 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.0056870c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0054854d
mov eax, dword [0x5f9f88]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebx + 0xf690]
mov byte [ebp - 4], 0x18
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x41d720
mov eax, ecx
jmp 0x41d723
mov eax, dword [eax + 0x10]
push eax
lea edx, [ebp - 0x28]
push 0x5e940c
push edx
call fcn.00563eb4
add esp, 8
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00568481
push 0
mov ecx, ebx
call fcn.00424af0
mov ecx, ebx
call fcn.0041d7f0
test eax, eax
jne 0x41d778
mov ecx, dword [ebx + 0xf690]
mov eax, dword [ecx]
test eax, eax
je 0x41d778
push eax
call fcn.00567b2c
mov edx, dword [ebx + 0xf690]
add esp, 4
mov dword [edx], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0056870c
jmp 0x41d6c1