Function at 0x42e2cc
Capabilities:
Read file on windows

Disassembly:
push 0x90
mov eax, 0x5139b6
call fcn.004d8abf
mov dword [ebp - 0x94], edx
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
xor eax, eax
mov dword [ebp - 0x40], eax
push eax
push eax
push 3
xor ecx, ecx
inc ecx
push eax
push ecx
push ecx
mov dword [ebp - 4], ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
je 0x42ea4c
test esi, esi
je 0x42ea4c
push 0xc
call fcn.004d8429
mov dword [ebp - 0x80], eax
push 0x100000
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004ae76d
mov ebx, eax
mov dword [ebp - 0x80], ebx
push 0x10
mov byte [ebp - 4], 4
call fcn.004d8429
mov ecx, eax
mov dword [ebp - 0x9c], ebx
mov edi, ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov dword [ebp - 0x98], ecx
xor edx, edx
inc edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x48], eax
mov dword [eax], edx
mov dword [ecx + 8], edx
mov dword [ecx], vtable.std::_Ref_count_class_std::vector_unsigned_char__class_std::allocator_unsigned_char___.0
mov dword [ecx + 0xc], ebx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x7c]
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
push eax
call fcn.004ae76d
push fcn.004042f9
push fcn.004014ec
push 2
push 8
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 6
xor edi, edi
mov dword [ebp - 0x30], 1
push eax
mov dword [ebp - 0x34], edi
call fcn.004d8656
mov ecx, edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], ecx
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 9
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x44], eax
push 0x24
call fcn.004d8429
mov ebx, eax
pop ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
push edi
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 0xc
push edi
call fcn.004d5dc9
lea ecx, [ebx + 0x20]
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
call fcn.0040687a
mov dword [ebp - 0x20], ebx
push 0x10
mov byte [ebp - 4], 0xd
call fcn.004d8429
mov edx, eax
xor eax, eax
mov dword [ebp - 0x20], edx
mov edi, edx
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
mov dword [edx], 0x5527ac
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0xc], ebx
mov ecx, dword [eax + 4]
mov dword [eax], ebx
mov dword [eax + 4], edx
test ecx, ecx
je 0x42e449
call fcn.00405adf
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
push dword [ebp + 0x10]
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x44]
cmp dword [eax], ecx
jne 0x42e499
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x68]
call fcn.00427491
pop ecx
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x68], 0
jl 0x42e546
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x42e48f
lock inc dword [ebx + 4]
mov ecx, dword [ebp - 0x70]
mov eax, ebx
mov edi, dword [ebp - 0x58]
jmp 0x42e4d1
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
call fcn.004b144f
pop ecx
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x2c], 0
jl 0x42ea03
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov edi, dword [ebp - 0x58]
test edi, edi
je 0x42e4c9
lock inc dword [edi + 4]
mov ecx, dword [ebp - 0x5c]
mov eax, edi
mov ebx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov edx, dword [edx]
test eax, eax
je 0x42e4e1
lock inc dword [eax + 4]
mov dword [edx + 0xc], ecx
mov ecx, dword [edx + 0x10]
mov dword [edx + 0x10], eax
test ecx, ecx
je 0x42e4f3
call fcn.00405adf
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
mov eax, dword [eax]
lock inc dword [ecx]
mov ecx, dword [ebp - 0x80]
mov edx, dword [eax + 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ecx
test edx, edx
je 0x42e517
mov ecx, edx
call fcn.00405adf
add dword [ebp - 0x44], 4
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x42e52b
call fcn.00405adf
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x80]
add eax, 8
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x42e5fc
xor edi, edi
jmp 0x42e3d1
cmp dword [ebp - 0x64], 0
mov eax, 0x1ee
cmovne eax, dword [ebp - 0x64]
push eax
push dword [ebp - 0x68]
push ecx
mov esi, esp
mov dword [ebp - 0x10], esi
mov edi, dword [ebp - 0x60]
lea ecx, [edi - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x2c]
mov dword [esi], eax
call fcn.00406620
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.0040121b
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
mov dword [ebp - 0x40], 1
call fcn.00407189
lea ecx, [edi - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x42e5ad
call fcn.00405adf
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x42e5b9
call fcn.00405adf
push fcn.004042f9
push 2
push 8
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 6
push eax
call fcn.004d86ca
lea ecx, [ebp - 0x7c]
call fcn.00409384
mov ecx, dword [ebp - 0x1c]
call fcn.00405adf
lea ecx, [ebp - 0x18]
call fcn.00427477
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, esi
jmp 0x42ea7b
and dword [ebp - 0x54], 0
xor eax, eax
and dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x44]
sub eax, dword [ebp - 0x7c]
and dword [ebp - 0x44], 0
push 0
push ecx
push eax
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e634
and dword [ebp - 0x48], 0
jmp 0x42e63c
call fcn.00406710
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x54]
cmp edx, eax
je 0x42e676
push 0xffffffffffffffff
mov ecx, eax
push 1
sub ecx, edx
sar ecx, 2
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x42e666
cmp eax, 1
jne 0x42e7fb
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x54], eax
cmovne eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
lea ecx, [ebp - 0x68]
add eax, 0x18
push eax
call fcn.0040121b
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x68], 0
jl 0x42e990
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x60]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x80]
add eax, 8
mov dword [ebp - 0x20], eax
cmp eax, ecx
jne 0x42e67f
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x30]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x38], eax
call fcn.0040687a
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x38], 0
jl 0x42e95b
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00407189
cmp dword [ebp - 0x44], 0
je 0x42e85b
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x80]
push dword [ebp - 0x7c]
push dword [eax]
call fcn.004d99b0
mov ebx, dword [ebp - 0x14]
lea edi, [ebp - 0x90]
mov esi, dword [ebp - 0x4c]
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [ebp - 0x44]
push 8
mov dword [ecx + 8], eax
call fcn.004d8429
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x48], ecx
and dword [ecx], 0
and dword [ecx + 4], 0
mov byte [ebp - 4], 0x19
mov eax, dword [edi + 4]
test eax, eax
je 0x42e744
lock inc dword [eax + 4]
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [ecx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], edx
test eax, eax
je 0x42e75f
mov ecx, eax
call fcn.00405adf
mov ecx, dword [ebp - 0x20]
push 0
push ecx
push 0x42ea81
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x42e79c
mov eax, dword [edi]
and dword [ebp - 0x48], 0
add eax, 0x14
cmp ebx, esi
je 0x42e78a
mov eax, dword [eax]
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x50], ebx
jmp 0x42e7d0
push eax
push ebx
lea ecx, [ebp - 0x54]
call fcn.004be79a
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
jmp 0x42e7d0
call fcn.00406710
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x221
call fcn.0040687a
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x2c]
mov ecx, dword [edi]
push eax
add ecx, 0x18
call fcn.004032ed
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x13
call fcn.004adb03
add edi, 8
lea eax, [ebp - 0x80]
cmp edi, eax
jne 0x42e716
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x6c]
jmp 0x42e60f
push 0x200
push 0x80004005
push ecx
mov ecx, esp
call fcn.0040687a
lea ecx, [ebp - 0x2c]
call fcn.00406620
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.0040121b
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], 1
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x54]
call fcn.004a9173
test edi, edi
je 0x42e84c
mov ecx, edi
call fcn.00405adf
test ebx, ebx
je 0x42e5b9
mov ecx, ebx
jmp 0x42e5b4
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x38]
push dword [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov byte [ebp - 4], 0x1b
cmp dword [ebp - 0x38], 0
jge 0x42e8d2
cmp dword [ebp - 0x34], 0
mov eax, 0x226
cmovne eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push ecx
mov esi, esp
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x2c]
mov dword [esi], eax
call fcn.00406620
mov byte [ebp - 4], 0x1c
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0040121b
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], 1
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x30]
jmp 0x42e831
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x38]
push dword [ebp + 0xc]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov byte [ebp - 4], 0x1d
cmp dword [ebp - 0x38], 0
jge 0x42e932
cmp dword [ebp - 0x34], 0
mov eax, 0x227
cmovne eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push ecx
mov esi, esp
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x2c]
mov dword [esi], eax
call fcn.00406620
mov byte [ebp - 4], 0x1e
jmp 0x42e8aa
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov esi, dword [ebp - 0x3c]
and dword [esi], 0
lea ecx, [esi + 8]
and dword [esi + 4], 0
call fcn.0040687a
mov dword [ebp - 0x40], 1
jmp 0x42e839
cmp dword [ebp - 0x34], 0
mov eax, 0x20b
cmovne eax, dword [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push ecx
mov esi, esp
mov dword [ebp - 0x10], esi
mov edi, dword [ebp - 0x30]
lea ecx, [edi - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x2c]
mov dword [esi], eax
call fcn.00406620
mov byte [ebp - 4], 0x18
jmp 0x42e9c3
cmp dword [ebp - 0x64], 0
mov eax, 0x206
cmovne eax, dword [ebp - 0x64]
push eax
push dword [ebp - 0x68]
push ecx
mov esi, esp
mov dword [ebp - 0x10], esi
mov edi, dword [ebp - 0x60]
lea ecx, [edi - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x2c]
mov dword [esi], eax
call fcn.00406620
mov byte [ebp - 4], 0x16
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.0040121b
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], 1
lea ecx, [ecx - 0x10]
call fcn.00407189
lea ecx, [edi - 0x10]
call fcn.00407189
lea ecx, [ebp - 0x54]
call fcn.004a9173
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x42e84c
jmp 0x42e847
cmp dword [ebp - 0x28], 0
mov eax, 0x1f1
cmovne eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
push ecx
mov esi, esp
mov dword [ebp - 0x10], esi
mov edi, dword [ebp - 0x24]
lea ecx, [edi - 0x10]
call fcn.004070e7
add eax, 0x10
lea ecx, [ebp - 0x68]
mov dword [esi], eax
call fcn.00406620
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x68]
mov esi, dword [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.0040121b
mov ecx, dword [ebp - 0x60]
jmp 0x42e58a
call fcn.00406710
push 0x1d9
push eax
push ecx
mov ecx, esp
call fcn.0040687a
mov ecx, ebx
call fcn.00406620
lea ecx, [ebp - 0x18]
call fcn.00427477
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407189
mov eax, ebx
call fcn.004d8a8d
ret