Function at 0x401d00
Capabilities:
Copy file
Create directory
Delete file
Resolve function by parsing pe exports
Set file attributes

Disassembly:
sub esp, 0x39c
mov al, byte [esp + 3]
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.00402e60
push 0
mov cl, byte [esp + 0x13]
mov byte [esp + 0x74], cl
lea ecx, [esp + 0x74]
call fcn.00402e60
mov edi, str.gina
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.gina
lea ecx, [esp + 0x78]
call fcn.00402f70
mov edi, str..log
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..log
lea ecx, [esp + 0x78]
call fcn.00402eb0
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x401d78
mov eax, 0x40b128
mov esi, eax
mov eax, dword [esp + 0x3b4]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401da9
test cl, cl
je 0x401da5
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401da9
add eax, 2
add esi, 2
test cl, cl
jne 0x401d81
xor eax, eax
jmp 0x401dae
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401e6e
lea eax, [esp + 0x90]
lea ecx, [esp + 0x94]
push eax
push ecx
mov dword [esp + 0x98], 0x105
call fcn.00401c10
add esp, 8
test eax, eax
jne 0x401def
push str.get_pp_name_failed.
call fcn.004016e0
add esp, 4
jmp 0x402118
lea edx, [esp + 0x94]
push edx
call fcn.004016e0
lea eax, [esp + 0x98]
push str.iNode
push eax
call fcn.00403cb0
add esp, 0xc
test eax, eax
jne 0x401e27
push str.gian__1.
call fcn.004016e0
add esp, 4
jmp 0x402118
push 0
call fcn.00403bca
push eax
push str.GinaId
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
call fcn.00401000
add esp, 0x14
test eax, eax
jne 0x401e5c
push str.gina_0.
call fcn.004016e0
add esp, 4
jmp 0x402118
push str.gina_1.
call fcn.004016e0
add esp, 4
jmp 0x402118
call fcn.00401060
test eax, eax
jne 0x401eab
push str.lack_of_comn_prog_files
call fcn.004016e0
add esp, 4
lea ecx, [esp + 0x70]
push 1
call fcn.00402e60
push 1
lea ecx, [esp + 0x14]
call fcn.00402e60
pop edi
pop esi
mov eax, 0x64
pop ebx
add esp, 0x39c
ret 0x10
push 0x40ff70
lea ecx, [esp + 0x2a8]
push str._sHuawei_3ComSecure_Client_reginfo_
push ecx
call fcn.00403779
mov dl, byte [esp + 0x1b]
add esp, 0xc
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], dl
push 0
call fcn.00402e60
mov edi, 0x40ff70
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40ff70
lea ecx, [esp + 0x48]
call fcn.00402f70
mov edi, str.Huawei_3Com
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Huawei_3Com
lea ecx, [esp + 0x48]
call fcn.00402eb0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x401f21
mov eax, 0x40b128
push eax
call fcn.00401590
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 4
test eax, eax
jne 0x401faf
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x401f41
mov eax, 0x40b128
push 0
push eax
call esi
test eax, eax
jne 0x401faf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x54]
push 0x40d0b4
push eax
call fcn.00403779
mov edi, str.Create_directory__Huawei_3com__failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Create_directory__Huawei_3com__failed_with_ErrNo
lea ecx, [esp + 0x18]
call fcn.00402f70
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402eb0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x402104
jmp 0x4020ff
mov edi, str.Secure_Client
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Secure_Client
lea ecx, [esp + 0x48]
call fcn.00402eb0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x401fda
mov eax, 0x40b128
push eax
call fcn.00401590
add esp, 4
test eax, eax
jne 0x40204d
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x401ff4
mov eax, 0x40b128
push 0
push eax
call esi
test eax, eax
jne 0x40204d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x54]
push 0x40d0b4
push edx
call fcn.00403779
mov edi, str.Create_directory__Secure_Client__failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Create_directory__Secure_Client__failed_with_ErrNo
lea ecx, [esp + 0x18]
call fcn.00402f70
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x50]
push ecx
push eax
jmp 0x401f95
mov edi, str._reginfo
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._reginfo
lea ecx, [esp + 0x48]
call fcn.00402eb0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x402078
mov eax, 0x40b128
push eax
call fcn.00401590
add esp, 4
test eax, eax
jne 0x40213c
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x402096
mov eax, 0x40b128
push 0
push eax
call esi
test eax, eax
jne 0x40213c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x54]
push 0x40d0b4
push ecx
call fcn.00403779
mov edi, str.Create_directory__reginfo__failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Create_directory__reginfo__failed_with_ErrNo
lea ecx, [esp + 0x18]
call fcn.00402f70
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00402eb0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x402104
mov eax, 0x40b128
push eax
call fcn.004016e0
add esp, 4
lea ecx, [esp + 0x40]
push 1
call fcn.00402e60
push 1
lea ecx, [esp + 0x74]
call fcn.00402e60
push 1
lea ecx, [esp + 0x14]
call fcn.00402e60
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x39c
ret 0x10
mov al, byte [esp + 0xf]
push 0
lea ecx, [esp + 0x84]
mov byte [esp + 0x84], al
call fcn.00402e60
push 1
lea ecx, [esp + 0x1a0]
push 0x105
push ecx
call fcn.00401100
lea edi, [esp + 0x1a8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x19c]
push ecx
push edx
lea ecx, [esp + 0x88]
call fcn.00402f70
mov edi, 0x40d36c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x40d36c
lea ecx, [esp + 0x48]
call fcn.00402eb0
push 0
lea ecx, [esp + 0x34]
mov al, byte [esp + 0x13]
mov byte [esp + 0x34], al
call fcn.00402e60
push 0
mov cl, byte [esp + 0x13]
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
call fcn.00402e60
mov edx, dword [esp + 0x84]
test edx, edx
jne 0x4021e6
mov edx, 0x40b128
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00402f70
mov edi, str.iNodeCustom.vrf
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.iNodeCustom.vrf
lea ecx, [esp + 0x38]
call fcn.00402eb0
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x402228
mov eax, 0x40b128
push eax
call fcn.00401520
mov edx, dword [esp + 0x88]
add esp, 4
test edx, edx
mov esi, eax
jne 0x402243
mov edx, 0x40b128
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00402f70
mov edi, str.iNodeCustom.ini
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.iNodeCustom.ini
lea ecx, [esp + 0x38]
call fcn.00402eb0
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x402285
mov eax, 0x40b128
push ebp
push eax
call fcn.00401520
add esp, 4
test esi, esi
je 0x402cd6
test eax, eax
je 0x402cd6
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x4022ac
mov edx, 0x40b128
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00402f70
mov edi, str.iNodeCustom.ini
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.iNodeCustom.ini
lea ecx, [esp + 0x2c]
call fcn.00402eb0
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4022ee
mov eax, 0x40b128
push eax
call fcn.00401520
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
test eax, eax
je 0x402430
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x402312
mov eax, 0x40b128
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x402388
call ebx
push eax
lea edx, [esp + 0x58]
push 0x40d0b4
push edx
call fcn.00403779
mov edi, str.SetFileAttr_ini_file_failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.SetFileAttr_ini_file_failed_with_ErrNo
lea ecx, [esp + 0x1c]
call fcn.00402f70
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x54]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402eb0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40237f
mov eax, 0x40b128
push eax
call fcn.004016e0
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x402395
mov eax, 0x40b128
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402430
call ebx
push eax
lea ecx, [esp + 0x58]
push 0x40d0b4
push ecx
call fcn.00403779
mov edi, str.DelFile_ini_file_failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403030
test al, al
je 0x4023fd
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.DelFile_ini_file_failed_with_ErrNo
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00403010
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x54]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402eb0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402427
mov eax, 0x40b128
push eax
call fcn.004016e0
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x40243d
mov ecx, 0x40b128
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40244a
mov eax, 0x40b128
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4024e8
call ebx
push eax
lea ecx, [esp + 0x58]
push 0x40d0b4
push ecx
call fcn.00403779
mov edi, str.reg_ini_file_failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403030
test al, al
je 0x4024b5
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.reg_ini_file_failed_with_ErrNo
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00403010
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x54]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402eb0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4024df
mov eax, 0x40b128
push eax
call fcn.004016e0
add esp, 4
mov esi, dword [esp + 0x88]
test esi, esi
jne 0x4024f8
mov esi, 0x40b128
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x38]
push ebp
call fcn.00403030
test al, al
je 0x402534
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00403010
mov edi, str.iNodeCustom.vrf
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.iNodeCustom.vrf
lea ecx, [esp + 0x3c]
call fcn.00402eb0
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x40255f
mov esi, 0x40b128
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00403030
test al, al
je 0x40259b
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov eax, ecx
push ebp
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, [esp + 0x28]
call fcn.00403010
mov edi, str.iNodeCustom.vrf
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.iNodeCustom.vrf
lea ecx, [esp + 0x2c]
call fcn.00402eb0
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4025c6
mov eax, 0x40b128
push eax
call fcn.00401520
add esp, 4
test eax, eax
je 0x40272c
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4025e4
mov eax, 0x40b128
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x402684
call ebx
push eax
lea ecx, [esp + 0x58]
push 0x40d0b4
push ecx
call fcn.00403779
mov edi, str.SetFileAttr_vrf_file_failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403030
test al, al
je 0x402651
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.SetFileAttr_vrf_file_failed_with_ErrNo
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00403010
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x54]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402eb0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40267b
mov eax, 0x40b128
push eax
call fcn.004016e0
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x402691
mov eax, 0x40b128
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40272c
call ebx
push eax
lea ecx, [esp + 0x58]
push 0x40d0b4
push ecx
call fcn.00403779
mov edi, str.DelFile_vrf_file_failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403030
test al, al
je 0x4026f9
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.DelFile_vrf_file_failed_with_ErrNo
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00403010
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x54]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402eb0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402723
mov eax, 0x40b128
push eax
call fcn.004016e0
add esp, 4
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x402739
mov ecx, 0x40b128
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x402746
mov eax, 0x40b128
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40282f
call ebx
push eax
lea ecx, [esp + 0x58]
push 0x40d0b4
push ecx
call fcn.00403779
mov edi, str.reg_vrf_file_failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403030
test al, al
je 0x4027b1
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.reg_vrf_file_failed_with_ErrNo
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00403010
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x40b12c]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4027d5
call fcn.004032bd
test esi, esi
jbe 0x402819
mov ecx, dword [esp + 0x1c]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x18]
push ebp
call fcn.00403030
test al, al
je 0x402819
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x54]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00403010
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402826
mov eax, 0x40b128
push eax
call fcn.004016e0
add esp, 4
mov esi, dword [esp + 0x88]
test esi, esi
jne 0x40283f
mov esi, 0x40b128
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x38]
push ebp
call fcn.00403030
test al, al
je 0x40287d
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], ebp
mov byte [ecx + ebp], 0
mov edi, str.CustomIcon.ico
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x40b12c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x3c]
sub edx, ecx
cmp edx, esi
ja 0x4028a3
call fcn.004032bd
test esi, esi
jbe 0x4028e8
mov eax, dword [esp + 0x3c]
push 0
lea ecx, [esp + 0x38]
lea ebp, [eax + esi]
push ebp
call fcn.00403030
test al, al
je 0x4028e8
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, esi
mov esi, str.CustomIcon.ico
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00403010
mov esi, dword [esp + 0x48]
test esi, esi
jne 0x4028f5
mov esi, 0x40b128
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00403030
test al, al
je 0x402933
mov edi, dword [esp + 0x28]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov byte [ecx + ebp], 0
mov edi, str.CustomIcon.ico
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x40b12c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
cmp edx, esi
ja 0x402959
call fcn.004032bd
test esi, esi
jbe 0x40299e
mov eax, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x28]
lea ebp, [eax + esi]
push ebp
call fcn.00403030
test al, al
je 0x40299e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov esi, str.CustomIcon.ico
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
call fcn.00403010
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4029ab
mov eax, 0x40b128
push eax
call fcn.00401520
add esp, 4
test eax, eax
je 0x402ce3
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, esi
jne 0x4029cb
mov eax, 0x40b128
push eax
call fcn.00401520
add esp, 4
test eax, eax
je 0x402bd5
mov eax, dword [esp + 0x28]
cmp eax, esi
jne 0x4029e9
mov eax, 0x40b128
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x402adb
call ebx
push eax
lea eax, [esp + 0x58]
push 0x40d0b4
push eax
call fcn.00403779
mov edi, str.SetFileAttr_ico_file_failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403030
test al, al
je 0x402a58
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.SetFileAttr_ico_file_failed_with_ErrNo
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x40b12c]
sub ecx, edx
cmp ecx, esi
ja 0x402a7d
call fcn.004032bd
test esi, esi
jbe 0x402ac3
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.00403030
test al, al
je 0x402ac3
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x54]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402ad0
mov eax, 0x40b128
push eax
call fcn.004016e0
add esp, 4
xor esi, esi
mov eax, dword [esp + 0x28]
cmp eax, esi
jne 0x402ae8
mov eax, 0x40b128
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402bd5
call ebx
push eax
lea edx, [esp + 0x58]
push 0x40d0b4
push edx
call fcn.00403779
mov edi, str.DelFile_ico_file_failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403030
test al, al
je 0x402b52
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.DelFile_ico_file_failed_with_ErrNo
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], 0
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x40b12c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x402b77
call fcn.004032bd
test esi, esi
jbe 0x402bbd
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call fcn.00403030
test al, al
je 0x402bbd
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x54]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402bca
mov eax, 0x40b128
push eax
call fcn.004016e0
add esp, 4
xor esi, esi
mov ecx, dword [esp + 0x28]
cmp ecx, esi
jne 0x402be2
mov ecx, 0x40b128
mov eax, dword [esp + 0x38]
cmp eax, esi
jne 0x402bef
mov eax, 0x40b128
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x402ce5
call ebx
push eax
lea ecx, [esp + 0x58]
push 0x40d0b4
push ecx
call fcn.00403779
mov edi, str.reg_ico_file_failed_with_ErrNo
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00403030
test al, al
je 0x402c5b
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.reg_ico_file_failed_with_ErrNo
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x40b12c]
sub ecx, edx
cmp ecx, esi
ja 0x402c80
call fcn.004032bd
test esi, esi
jbe 0x402cc6
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.00403030
test al, al
je 0x402cc6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x54]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402cd3
mov eax, 0x40b128
push eax
jmp 0x402cdb
push str.lack_of_ini_vrf_file.
call fcn.004016e0
add esp, 4
xor esi, esi
mov ecx, dword [esp + 0x28]
pop ebp
cmp ecx, esi
je 0x402d0a
mov al, byte [ecx - 1]
test al, al
je 0x402d00
cmp al, 0xff
je 0x402d00
dec al
mov byte [ecx - 1], al
jmp 0x402d0a
dec ecx
push ecx
call fcn.004032b2
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], esi
cmp ecx, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
je 0x402d3a
mov al, byte [ecx - 1]
test al, al
je 0x402d30
cmp al, 0xff
je 0x402d30
dec al
mov byte [ecx - 1], al
jmp 0x402d3a
dec ecx
push ecx
call fcn.004032b2
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x34], esi
cmp ecx, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
je 0x402d6d
mov al, byte [ecx - 1]
test al, al
je 0x402d63
cmp al, 0xff
je 0x402d63
dec al
mov byte [ecx - 1], al
jmp 0x402d6d
dec ecx
push ecx
call fcn.004032b2
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x84], esi
cmp ecx, esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
je 0x402da6
mov al, byte [ecx - 1]
test al, al
je 0x402d9c
cmp al, 0xff
je 0x402d9c
dec al
mov byte [ecx - 1], al
jmp 0x402da6
dec ecx
push ecx
call fcn.004032b2
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x44], esi
cmp ecx, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
je 0x402dd6
mov al, byte [ecx - 1]
test al, al
je 0x402dcc
cmp al, 0xff
je 0x402dcc
dec al
mov byte [ecx - 1], al
jmp 0x402dd6
dec ecx
push ecx
call fcn.004032b2
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], esi
cmp ecx, esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
je 0x402e12
mov al, byte [ecx - 1]
test al, al
je 0x402e08
cmp al, 0xff
je 0x402e08
dec al
pop edi
mov byte [ecx - 1], al
pop esi
xor eax, eax
pop ebx
add esp, 0x39c
ret 0x10
dec ecx
push ecx
call fcn.004032b2
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x39c
ret 0x10