Function at 0x40e540
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457060
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x46a080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x17c], edi
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40e59c
cmp dword [ebp - 0x54], 0
jne 0x40ee31
push 0x40000
push 1
call fcn.00437015
push eax
call fcn.0043e1ca
add esp, 8
push eax
call fcn.0043dfd9
add esp, 8
cmp eax, 0xffffffff
je 0x40e5e2
push 0x40000
push 2
call fcn.00437015
push eax
call fcn.0043e1ca
add esp, 8
push eax
call fcn.0043dfd9
add esp, 8
cmp eax, 0xffffffff
jne 0x40e5fa
mov edx, str.Unable_to_set_stdout_and_or_stderr_modes_to_UTF8.
mov ecx, 0x46bc68
call fcn.00407c30
push eax
call fcn.00407ef0
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 0x16b], 0
xor eax, eax
mov byte [ebp - 0x169], 0
movups xmmword [ebp - 0x6c], xmm0
mov byte [ebp - 0x16a], 0
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x16c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov dword [ebp - 4], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov esi, 1
mov byte [ebp - 4], 1
cmp dword [ebp + 8], esi
jle 0x40ea14
nop word [eax + eax]
push dword [edi + esi*4]
push str._details
call fcn.0043871e
add esp, 8
test eax, eax
jne 0x40e691
mov dl, 1
mov byte [ebp - 0x16b], dl
jmp 0x40e85b
push dword [edi + esi*4]
push str._csv
call fcn.0043871e
add esp, 8
test eax, eax
jne 0x40e6b8
mov dl, byte [ebp - 0x16b]
mov al, 1
mov byte [ebp - 0x169], al
jmp 0x40e861
push dword [edi + esi*4]
push str._threads
call fcn.0043871e
add esp, 8
test eax, eax
jne 0x40e6e5
mov al, byte [ebp - 0x169]
mov cl, 1
mov dl, byte [ebp - 0x16b]
mov byte [ebp - 0x16a], cl
jmp 0x40e867
push dword [edi + esi*4]
push str._secs
call fcn.0043871e
add esp, 8
test eax, eax
jne 0x40e725
inc esi
cmp esi, dword [ebp + 8]
jge 0x40ee67
lea eax, [ebp - 0x38]
push eax
push str._llu
push dword [edi + esi*4]
call fcn.0040e250
add esp, 0xc
cmp eax, 1
jne 0x40ee4f
jmp 0x40e855
push dword [edi + esi*4]
push str._out
call fcn.0043871e
add esp, 8
test eax, eax
jne 0x40e7bf
inc esi
mov byte [ebp - 0x16c], 1
mov dword [ebp - 0x170], esi
cmp esi, dword [ebp + 8]
jge 0x40ee73
mov edx, dword [edi + esi*4]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x174], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e762
sub ecx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x58]
sar ecx, 1
cmp ecx, eax
ja 0x40e7ae
lea esi, [ecx + ecx]
mov dword [ebp - 0x5c], ecx
cmp eax, 7
lea edi, [ebp - 0x6c]
push esi
cmova edi, dword [ebp - 0x6c]
push edx
push edi
call fcn.0042f050
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov esi, dword [ebp - 0x170]
mov edi, dword [ebp - 0x17c]
jmp 0x40e855
push edx
mov byte [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x6c]
jmp 0x40e850
push dword [edi + esi*4]
push str._diag
call fcn.0043871e
add esp, 8
test eax, eax
jne 0x40e997
inc esi
mov dword [ebp - 0x170], esi
cmp esi, dword [ebp + 8]
jge 0x40ee8b
mov edx, dword [edi + esi*4]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x174], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e7f5
sub ecx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x14]
sar ecx, 1
cmp ecx, eax
ja 0x40e83e
lea esi, [ecx + ecx]
mov dword [ebp - 0x18], ecx
cmp eax, 7
lea edi, [ebp - 0x28]
push esi
cmova edi, dword [ebp - 0x28]
push edx
push edi
call fcn.0042f050
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
mov esi, dword [ebp - 0x170]
mov edi, dword [ebp - 0x17c]
jmp 0x40e855
push edx
mov byte [ebp - 0x178], 0
push dword [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00409010
mov dl, byte [ebp - 0x16b]
mov al, byte [ebp - 0x169]
mov cl, byte [ebp - 0x16a]
inc esi
cmp esi, dword [ebp + 8]
jl 0x40e670
test cl, cl
je 0x40e8a8
test dl, dl
jne 0x40ee5b
test al, al
jne 0x40ee5b
cmp dword [ebp - 0x38], 3
jne 0x40ee5b
cmp dword [ebp - 0x34], 0
jne 0x40ee5b
cmp dword [ebp - 0x18], 0
ja 0x40ee5b
jmp 0x40ea14
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x40ea14
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
test edx, edx
je 0x40e974
cmp esi, 7
lea eax, [ebp - 0x28]
cmova eax, ecx
cmp word [eax + edx*2 - 2], 0x5c
je 0x40e8ef
test edx, edx
je 0x40e974
cmp esi, 7
lea eax, [ebp - 0x28]
cmova eax, ecx
cmp word [eax + edx*2 - 2], 0x2f
jne 0x40e974
lea ecx, [edx - 1]
mov dword [ebp - 0x40], 0
cmp edx, ecx
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
cmovb ecx, edx
cmp esi, 7
push ecx
cmova eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x50]
push eax
movups xmmword [ebp - 0x50], xmm0
call fcn.00408470
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40e95a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e950
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eee3
push ecx
push edx
call fcn.0042d9cb
add esp, 8
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [ebp - 0x18], xmm0
mov edx, dword [ebp - 0x18]
jmp 0x40e8b3
cmp esi, 7
lea eax, [ebp - 0x28]
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ee7f
test al, 0x10
je 0x40ee7f
jmp 0x40ea14
mov eax, dword [edi + esi*4]
mov ecx, 0x462d70
mov edx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x40e9c7
test si, si
je 0x40e9c3
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40e9c7
add ecx, 4
add edx, 4
test si, si
jne 0x40e9a1
xor ecx, ecx
jmp 0x40e9cc
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x40eeab
mov ecx, 0x462d78
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40ee9b
test dx, dx
je 0x40ee97
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40ee9b
add ecx, 4
add eax, 4
test dx, dx
je 0x40ee97
jmp 0x40e9e0
push 0xb0
lea eax, [ebp - 0x168]
mov esi, 0x46bd18
push 0
push eax
call fcn.0042f5e0
add esp, 8
lea ecx, [ebp - 0x168]
call fcn.00404200
cmp byte [ebp - 0x16c], 0
mov byte [ebp - 4], 2
je 0x40ea6b
cmp dword [ebp - 0x58], 7
lea ecx, [ebp - 0x6c]
lea esi, [ebp - 0x168]
cmova ecx, dword [ebp - 0x6c]
mov edx, esi
push ecx
call fcn.0040a790
add esp, 4
test al, al
je 0x40eeb4
xor edi, edi
cmp byte [ebp - 0x16a], 0
je 0x40ea86
mov ecx, esi
call fcn.0040af10
movzx edi, al
dec edi
jmp 0x40ecd5
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x4c
lea eax, [ebp - 0xb8]
push 0
push eax
call fcn.0042f5e0
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], 0x463304
push 0x4c
mov dword [ebp - 0x178], eax
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xac], edi
call fcn.0042d99b
add esp, 0x10
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa8]
push eax
push 0x10
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0x98], 8
mov dword [ebp - 0xb4], 0x3f800000
call fcn.00411760
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov byte [ebp - 4], 6
push 0x58
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
call fcn.0042d99b
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 7
push 0x20
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.0042d99b
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3c], 7
movups xmmword [ebp - 0x50], xmm0
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0xb8]
push dword [ebp - 0x38]
call fcn.00413680
test al, al
je 0x40ec44
cmp byte [ebp - 0x16b], 0
lea ecx, [ebp - 0xb8]
mov edx, esi
jne 0x40ec21
sub esp, 8
cmp byte [ebp - 0x169], 0
jne 0x40ec17
call fcn.0040f090
add esp, 8
jmp 0x40ec74
call fcn.0040f650
add esp, 8
jmp 0x40ec74
cmp byte [ebp - 0x169], 0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
jne 0x40ec3a
call fcn.0040f830
add esp, 8
jmp 0x40ec74
call fcn.004103e0
add esp, 8
jmp 0x40ec74
mov edx, str.Error:
mov ecx, 0x46bc68
call fcn.00407c30
cmp dword [ebp - 0x3c], 7
lea edx, [ebp - 0x50]
push dword [ebp - 0x40]
cmova edx, dword [ebp - 0x50]
mov ecx, eax
call fcn.0040a020
push eax
call fcn.00407ef0
add esp, 8
or edi, 0xffffffff
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 7
jbe 0x40ecb2
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40eca8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eede
push ecx
push edx
call fcn.0042d9cb
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov byte [ebp - 4], 2
call fcn.0040ef20
cmp byte [ebp - 0x16c], 0
je 0x40ed16
lea ecx, [ebp - 0x164]
call fcn.004068e0
test eax, eax
jne 0x40ed16
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x168]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402aa0
mov eax, dword [ebp - 0x168]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x16c], eax
lea ecx, [ebp - 0x164]
call fcn.00404150
mov eax, dword [ebp - 0x168]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x16c], eax
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0xa
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00416750
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, 7
jbe 0x40edc6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40edbc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eee3
push ecx
push edx
call fcn.0042d9cb
add esp, 8
mov ecx, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x40ee14
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ee0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eee3
push ecx
push edx
call fcn.0042d9cb
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d98d
mov esp, ebp
pop ebp
ret
push ecx
mov edx, str.Wrong_version._You_need_to_run_the_64_bit_version_of_this_program.
mov ecx, 0x46bc68
call fcn.00407c30
mov ecx, eax
call fcn.00405440
push 0xfffffffffffffffe
call fcn.004386bf
mov edx, dword [edi]
mov ecx, str.Invalid_arg_for__secs
call fcn.0040e310
mov edx, dword [edi]
mov ecx, str.Invalid_combination_of_switches
call fcn.0040e310
mov edx, dword [edi]
mov ecx, str.Missing_arg_for__secs
call fcn.0040e310
mov edx, dword [edi]
mov ecx, str.Missing_arg_for__out
call fcn.0040e310
mov edx, dword [edi]
mov ecx, str._diag_argument_is_not_a_directory
call fcn.0040e310
mov edx, dword [edi]
mov ecx, str.Missing_arg_for__diag
call fcn.0040e310
xor eax, eax
jmp 0x40eea0
sbb eax, eax
or eax, 1
test eax, eax
je 0x40eeab
mov ecx, str.Unrecognized_command_line_option
jmp 0x40eead
xor ecx, ecx
mov edx, dword [edi]
call fcn.0040e310
push ecx
mov edx, str.Cannot_open_output_file
mov ecx, 0x46bc68
call fcn.00407c30
lea edx, [ebp - 0x6c]
mov ecx, eax
call fcn.00407ed0
mov ecx, eax
call fcn.00405440
mov edx, dword [edi]
xor ecx, ecx
call fcn.0040e310
call fcn.004380a6
call fcn.004380a6
int3