Function at 0x401c70
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a04f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x477010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x1c], esi
lea eax, [esi + 4]
mov dword [ebp - 0x2a0], esi
mov ecx, eax
mov dword [esi], vtable.CSelfMapping.0
mov dword [ebp - 0x18], eax
call fcn.00419fa0
mov dword [ebp - 4], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0x6c6f53
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x284]
push 8
xor eax, eax
mov dword [ebp - 0x274], 0
push str._INFO_:
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
call fcn.0040bcc0
push str.Loading_stub_data
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 4
call fcn.0040aa60
mov dword [ebp - 0x240], 0
xor ecx, ecx
mov dword [ebp - 0x23c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x240], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 5
push eax
call fcn.00401b50
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x401e02
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401df8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402676
push edx
push ecx
call fcn.00420a59
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x270]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
cmp edx, 8
jb 0x401e63
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40267b
push edx
push ecx
call fcn.00420a59
add esp, 8
push 0x48
call fcn.00420a67
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [edi + 4], 1
mov dword [edi + 8], 1
lea esi, [edi + 0x10]
mov dword [edi], vtable.std::_Ref_count_obj_class_CFile_.0
mov dword [ebp - 0x254], esi
push 0xffffffffffffffff
push 0
push 1
mov byte [ebp - 4], 8
mov ecx, esi
push dword [ebp - 0x18]
call fcn.0040c7b0
mov eax, dword [ebp - 0x234]
mov dword [eax + 0x1c], esi
mov esi, eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x18], eax
mov dword [esi + 0x20], edi
mov edi, eax
mov byte [ebp - 4], 9
test edi, edi
je 0x401ee2
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x401ee2
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x401ee2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x238], eax
test eax, eax
je 0x402137
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x401f11
cmp ecx, 0xffffffff
je 0x401f11
mov cl, 1
jmp 0x401f13
xor cl, cl
test cl, cl
je 0x402137
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
push 0x28
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
call fcn.00420a67
mov edi, eax
add esp, 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
push eax
push dword [ebp - 0x238]
lea esi, [edi + 0xc]
mov dword [edi + 4], 1
mov ecx, esi
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_CFileMapping_.0
call fcn.00411a50
mov eax, dword [ebp - 0x234]
mov dword [eax + 0x24], esi
mov esi, eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x18], eax
mov dword [esi + 0x28], edi
mov edi, eax
mov byte [ebp - 4], 0x11
test edi, edi
je 0x401f9d
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x401f9d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x401f9d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [esi + 0x30]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00403900
mov ecx, dword [esi + 0x1c]
mov edx, eax
mov dword [esi + 0x2c], edx
cmp dword [ecx + 0x2c], 0
jb 0x40246f
ja 0x401fc9
cmp dword [ecx + 0x28], edx
jbe 0x40246f
mov edi, dword [esi + 0x34]
mov eax, dword [esi + 0x38]
add edi, 0xc
add edi, edx
mov dword [ebp - 0x234], eax
xor edx, edx
mov dword [ebp - 0x238], edx
cmp edx, dword [ecx + 0x2c]
ja 0x40246f
jb 0x401ff6
cmp edi, dword [ecx + 0x28]
jae 0x40246f
test eax, eax
je 0x40246f
mov eax, dword [ecx + 8]
test eax, eax
je 0x40200e
cmp eax, 0xffffffff
je 0x40200e
mov cl, 1
jmp 0x402010
xor cl, cl
test cl, cl
jne 0x402018
xor al, al
jmp 0x40202a
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
test al, al
je 0x40246f
push 0x208
lea eax, [ebp - 0x228]
mov byte [ebp - 0x230], 0
push 0
push eax
mov dword [ebp - 0x22c], 0
call fcn.00424990
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
je 0x40206c
cmp eax, 0xffffffff
je 0x40206c
mov cl, 1
jmp 0x40206e
xor cl, cl
test cl, cl
je 0x40210b
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push 8
lea ecx, [ebp - 0x230]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40210b
mov eax, dword [esi + 0x1c]
movzx edx, byte [ebp - 0x230]
mov eax, dword [eax + 8]
test eax, eax
je 0x4020b1
cmp eax, 0xffffffff
je 0x4020b1
mov cl, 1
jmp 0x4020b3
xor cl, cl
test cl, cl
je 0x402105
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push edx
lea ecx, [ebp - 0x228]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402105
lea eax, [ebp - 0x230]
push eax
lea ecx, [esi + 0x3c]
call fcn.0040a070
movzx eax, byte [ebp - 0x230]
add eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x22c]
sub dword [ebp - 0x234], eax
add edi, eax
adc dword [ebp - 0x238], 0
inc dword [ebp - 0x254]
mov ecx, dword [esi + 0x1c]
mov eax, dword [ebp - 0x238]
cmp eax, dword [ecx + 0x2c]
mov eax, dword [ebp - 0x234]
jb 0x401ff6
ja 0x40246f
cmp edi, dword [ecx + 0x28]
jb 0x401ff6
jmp 0x40246f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x29c]
call fcn.0041eab0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x284]
push 9
xor eax, eax
mov dword [ebp - 0x274], 0
push str._failed:
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
call fcn.0040bcc0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x26c]
push 9
xor eax, eax
mov dword [ebp - 0x25c], 0
push str._ERROR_:
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
call fcn.0040bcc0
push str.CreateFile
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0xd
call fcn.0040aa60
mov dword [ebp - 0x240], 0
xor ecx, ecx
mov dword [ebp - 0x23c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x240], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 0xe
push eax
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x2d0]
call fcn.0040a950
add esp, 4
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 0xf
push ecx
mov edx, eax
lea ecx, [ebp - 0x2b8]
call fcn.0040a950
add esp, 4
push eax
mov byte [ebp - 4], 0x10
call fcn.00401b50
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x2a4]
cmp edx, 8
jb 0x40228a
mov ecx, dword [ebp - 0x2b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402280
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402680
push edx
push ecx
call fcn.00420a59
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x2bc]
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 7
mov word [ebp - 0x2b8], ax
cmp edx, 8
jb 0x4022eb
mov ecx, dword [ebp - 0x2d0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402685
push edx
push ecx
call fcn.00420a59
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 7
mov word [ebp - 0x2d0], ax
cmp edx, 8
jb 0x40234c
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402342
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40268a
push edx
push ecx
call fcn.00420a59
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
cmp edx, 8
jb 0x4023ad
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4023a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40268f
push edx
push ecx
call fcn.00420a59
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x270]
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
cmp edx, 8
jb 0x40240e
mov ecx, dword [ebp - 0x284]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402404
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402694
push edx
push ecx
call fcn.00420a59
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 7
mov word [ebp - 0x284], ax
cmp edx, 8
jb 0x40246f
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402465
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402699
push edx
push ecx
call fcn.00420a59
add esp, 8
push dword [ebp - 0x254]
lea eax, [ebp - 0x29c]
push dword [esi + 0x38]
push dword [esi + 0x34]
push str.Stub_data__package_length__ld__updater_length__ld___d_files_
push eax
call fcn.0041ec00
add esp, 0x14
mov edi, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x26c]
push 8
xor eax, eax
mov dword [ebp - 0x25c], 0
push str._INFO_:
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
call fcn.0040bcc0
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x25c]
sub eax, ecx
mov edx, dword [edi + 0x10]
cmp edx, eax
jbe 0x402506
mov eax, dword [edi + 0x14]
sub eax, edx
cmp eax, ecx
jb 0x402506
cmp dword [ebp - 0x258], 8
lea eax, [ebp - 0x26c]
push ecx
cmovae eax, dword [ebp - 0x26c]
push eax
push ecx
mov ecx, edi
call fcn.0040ace0
jmp 0x402512
push edi
lea ecx, [ebp - 0x26c]
call fcn.0040aae0
mov dword [ebp - 0x240], 0
xor ecx, ecx
mov dword [ebp - 0x23c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x240], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 0x15
push eax
call fcn.00401b50
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x4025a0
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402596
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40269e
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x258]
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
cmp edx, 8
jb 0x4025fd
mov ecx, dword [ebp - 0x26c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4025f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026a3
push edx
push ecx
call fcn.00420a59
add esp, 8
mov edx, dword [ebp - 0x288]
xor eax, eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 7
mov word [ebp - 0x26c], ax
cmp edx, 8
jb 0x402656
mov ecx, dword [ebp - 0x29c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40264c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026a8
push edx
push ecx
call fcn.00420a59
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420a25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
call fcn.0042848b
int3