Function at 0x404030
Capabilities:
Accept command line arguments
Check if file exists
Copy file
Get file attributes
Print debug messages

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 0x431300
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x2938
call fcn.00411330
mov eax, dword [0x443054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2890]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
lea eax, [ebp - 0x2848]
push eax
mov dword [ebp - 0x2898], edi
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push dword [edi]
push 0x445278
push str._s_Start__ls
push 0x4451ec
call fcn.0040b450
lea eax, [ebp - 0x2848]
push eax
call fcn.00419b80
add esp, 0x14
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push dword [ebp - 0x2890]
push 0x445278
push str._s_argc___d
push 0x4451ec
call fcn.0040b450
mov eax, dword [ebp - 0x2890]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x404210
nop dword [eax + eax]
lea eax, [ebp - 0x2848]
push eax
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push dword [edi + esi*4]
push esi
push 0x445278
push str._s_argv__d____ls
push 0x4451ec
call fcn.0040b450
mov eax, dword [ebp - 0x2890]
inc esi
add esp, 0x14
cmp esi, eax
jl 0x404190
cmp eax, 4
jl 0x40421a
mov edx, dword [edi + 0xc]
jmp 0x40421f
mov edx, 0x43dcac
mov ecx, edx
mov dword [ebp - 0x2860], 0
mov dword [ebp - 0x2850], 0
mov dword [ebp - 0x284c], 7
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404242
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2860]
call fcn.00406a60
cmp dword [ebp - 0x284c], 8
lea edx, [ebp - 0x2860]
mov eax, dword [ebp - 0x2850]
cmovae edx, dword [ebp - 0x2860]
setae byte [ebp - 0x2889]
mov dword [ebp - 0x2894], edx
cmp eax, 1
jb 0x4042de
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
mov eax, edx
lea edi, [edx + ecx*2]
movzx edx, word [edi]
cmp edx, 0x5c
jne 0x4042cb
lea esi, [edx - 0x5b]
mov eax, 0x43dca8
mov ecx, edi
nop word [eax + eax]
cmp dx, word [eax]
jne 0x4042c5
add ecx, 2
add eax, 2
sub esi, 1
je 0x4042d4
movzx edx, word [ecx]
jmp 0x4042b0
mov eax, dword [ebp - 0x2894]
cmp edi, eax
je 0x4042de
sub edi, 2
jmp 0x404298
sub edi, dword [ebp - 0x2894]
sar edi, 1
jmp 0x4042e1
or edi, 0xffffffff
cmp dword [ebp - 0x2850], edi
lea eax, [ebp - 0x2860]
lea ecx, [ebp - 0x2878]
mov dword [ebp - 0x2878], 0
cmovb edi, dword [ebp - 0x2850]
cmp byte [ebp - 0x2889], 0
push edi
cmovne eax, dword [ebp - 0x2860]
push eax
mov dword [ebp - 0x2868], 0
mov dword [ebp - 0x2864], 7
call fcn.00406a60
mov edx, dword [ebp - 0x284c]
cmp edx, 8
jb 0x40436d
mov ecx, dword [ebp - 0x2860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404363
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d3c
push edx
push ecx
call fcn.00410765
add esp, 8
movups xmm1, xmmword [ebp - 0x2878]
cmp dword [ebp - 0x2864], 8
lea ecx, [ebp - 0x2860]
movq xmm0, qword [ebp - 0x2868]
movd eax, xmm1
movups xmmword [ebp - 0x2860], xmm1
cmovae ecx, eax
movq qword [ebp - 0x2850], xmm0
push ecx
push 0x43df68
push 0x104
call fcn.00407c80
add eax, 0x98
push eax
call fcn.00401130
lea eax, [ebp - 0x2848]
push eax
call fcn.00419b80
add esp, 0x14
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
call fcn.00407c80
add eax, 0x98
push eax
push 0x445278
push str._s__ls
push 0x4451ec
call fcn.0040b450
push 0x800
lea eax, [ebp - 0x2838]
push 0
push eax
call fcn.00412210
add esp, 0x1c
lea eax, [ebp - 0x220]
push 0x208
push 0
push eax
call fcn.00412210
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x208
push 0
push eax
call fcn.00412210
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x208
push 0
push eax
call fcn.00412210
add esp, 0xc
lea eax, [ebp - 0x838]
push 0x208
push 0
push eax
call fcn.00412210
add esp, 0xc
lea eax, [ebp - 0x2038]
push 0x800
push 0
push eax
call fcn.00412210
add esp, 0xc
lea eax, [ebp - 0x1838]
push 0x800
push 0
push eax
call fcn.00412210
add esp, 0xc
lea eax, [ebp - 0x1038]
push 0x800
push 0
push eax
call fcn.00412210
add esp, 0xc
lea eax, [ebp - 0x2838]
push str.B9ECED6F.ArmouryCrate_qmba6cd70vzyy
push 0x104
push eax
call fcn.00401130
add esp, 0xc
call fcn.00407c80
mov ecx, eax
call fcn.00409b20
mov byte [ebp - 0x2889], al
lea eax, [ebp - 0x2848]
push eax
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
movzx eax, byte [ebp - 0x2889]
add esp, 0x24
mov byte [0x44528f], 0
push eax
push 0x445278
push str._s_Initialize_EzULIB__result:__d
push 0x4451ec
call fcn.0040b450
add esp, 0x10
cmp byte [ebp - 0x2889], 0
je 0x404597
push str.Initial_DLL_success_n
jmp 0x40459c
push str.Initial_DLL_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ecx
call fcn.00407c80
mov ecx, eax
call fcn.00407d80
call fcn.00407c80
lea eax, [ebp - 0x220]
push eax
call fcn.004099e0
lea eax, [ebp - 0x220]
push eax
push str._lsSupportTemp
lea eax, [ebp - 0x630]
push 0x104
push eax
call fcn.00401130
lea eax, [ebp - 0x220]
push eax
push str._lsGrid_Debug
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.00401130
lea eax, [ebp - 0x220]
push eax
push str._lsAC_Debug
lea eax, [ebp - 0x838]
push 0x104
push eax
call fcn.00401130
lea eax, [ebp - 0x220]
push eax
push str._lsGridUpdateFileSetupGridENV
lea eax, [ebp - 0x1038]
push 0x104
push eax
call fcn.00401130
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x1038]
add esp, 0x40
push eax
call esi
cmp eax, 0xffffffff
je 0x4046c5
test al, 0x10
jne 0x4046c5
lea eax, [ebp - 0x2848]
push eax
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push 0x445278
push str._s_SetupGridENV_Already_Exist
push 0x4451ec
call fcn.0040b450
add esp, 0xc
jmp 0x4047ff
lea eax, [ebp - 0x2848]
push eax
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push 0x445278
push str._s_Write_SetupGridENV
push 0x4451ec
call fcn.0040b450
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x2948]
call fcn.00405bc0
lea ecx, [ebp - 0x2944]
call fcn.00406790
test eax, eax
jne 0x40477f
mov eax, dword [ebp - 0x2948]
lea ecx, [ebp - 0x2948]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00401bf0
mov eax, dword [ebp - 0x2948]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2948]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x294c], eax
lea ecx, [ebp - 0x2944]
call fcn.00405850
mov eax, dword [ebp - 0x2948]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2948]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x294c], eax
lea eax, [ebp - 0x28e0]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040fa41
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x428]
push eax
call esi
cmp eax, 0xffffffff
je 0x404811
test al, 0x10
je 0x40482b
lea eax, [ebp - 0x838]
push eax
call esi
cmp eax, 0xffffffff
je 0x40497b
test al, 0x10
jne 0x40497b
call fcn.00407c80
push 5
push str.Debug
lea ecx, [eax + 0x80]
call fcn.00406bb0
lea eax, [ebp - 0x428]
push eax
call esi
cmp eax, 0xffffffff
je 0x40485b
test al, 0x10
jne 0x40485b
mov eax, 1
jmp 0x40485d
xor eax, eax
mov ecx, str.AC_Debug
mov dword [ebp - 0x2878], 0
test eax, eax
mov dword [ebp - 0x2868], 0
mov edx, str.Grid_Debug
mov dword [ebp - 0x2864], 7
cmove edx, ecx
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404890
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2878]
call fcn.00406a60
cmp dword [ebp - 0x2864], 8
lea eax, [ebp - 0x2848]
lea esi, [ebp - 0x2878]
cmovae esi, dword [ebp - 0x2878]
push eax
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push esi
push 0x445278
push str._s_Debug_Mode___ls
push 0x4451ec
call fcn.0040b450
mov edx, dword [ebp - 0x2864]
add esp, 0x10
cmp edx, 8
jb 0x404a03
mov ecx, dword [ebp - 0x2878]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40496c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d37
push edx
push ecx
call fcn.00410765
add esp, 8
jmp 0x404a03
call fcn.00407c80
push 7
push str.Release
lea ecx, [eax + 0x80]
call fcn.00406bb0
lea eax, [ebp - 0x2848]
push eax
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push 0x445278
push str._s_Release_Mode
push 0x4451ec
call fcn.0040b450
add esp, 0xc
mov esi, dword [ebp - 0x2898]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push str.getUpdateItem
push dword [esi + 8]
call edi
test eax, eax
jne 0x404b2e
lea eax, [ebp - 0x2848]
push eax
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push 0x445278
push str._s_getUpdateItem
push 0x4451ec
call fcn.0040b450
sub esp, 0xc
lea ecx, [ebp - 0x630]
mov edx, esp
lea edi, [ecx + 2]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404ab1
sub ecx, edi
lea eax, [ebp - 0x630]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00406a60
sub esp, 0x18
mov ecx, 0x444fd8
mov edx, esp
lea edi, [ecx + 2]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404af0
sub ecx, edi
sar ecx, 1
push ecx
push 0x444fd8
mov ecx, edx
call fcn.00406a60
cmp dword [0x4451e0], 0
jne 0x404b24
push 1
call fcn.004104e4
add esp, 4
mov dword [0x4451e0], eax
call fcn.00402450
jmp 0x404c61
push str.copyFile
push dword [esi + 8]
call edi
test eax, eax
lea eax, [ebp - 0x2848]
push eax
jne 0x404bf7
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push 0x445278
push str._s_copyFile
push 0x4451ec
call fcn.0040b450
add esp, 0xc
lea eax, [ebp - 0x2038]
push dword [esi + 0xc]
push 0x104
push eax
call fcn.00401130
add esp, 0xc
lea eax, [ebp - 0x1838]
push dword [esi + 0x10]
push 0x104
push eax
call fcn.00401130
add esp, 0xc
lea eax, [ebp - 0x1838]
push 0
push eax
lea eax, [ebp - 0x2038]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x404c61
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2848]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2840]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push 0x445278
push str._s_ASUSGCDriverInitialClient_without_any_parameters
push 0x4451ec
call fcn.0040b450
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x2888]
push eax
call fcn.00419b80
add esp, 4
lea eax, [ebp - 0x2888]
push eax
call fcn.0041a536
movzx ecx, word [ebp - 0x2880]
add esp, 4
mov edx, eax
push ecx
push dword [edx]
mov eax, dword [edx + 0x10]
push dword [edx + 4]
inc eax
push dword [edx + 8]
push dword [edx + 0xc]
push eax
mov eax, dword [edx + 0x14]
add eax, 0x76c
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d
push 0x445278
call fcn.0040ae70
add esp, 0x24
mov byte [0x44528f], 0
push 0x445278
push str._s_End_of_main
push 0x4451ec
call fcn.0040b450
mov edx, dword [ebp - 0x284c]
add esp, 0xc
cmp edx, 8
jb 0x404d15
mov ecx, dword [ebp - 0x2860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404d0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d3c
push edx
push ecx
call fcn.00410765
add esp, 8
xor eax, eax
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.004102c8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.004196e2
call fcn.004196e2
int3