Function at 0x401b50
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0xb2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb44]
push edi
mov ebp, esi
mov al, byte [esi]
lea edi, [esp + 0x32c]
test al, al
je 0x401bb1
mov bl, 0x20
mov al, byte [ebp]
cmp al, 0x2f
je 0x401b97
cmp al, 0x3a
je 0x401b8d
movsx eax, al
push eax
call fcn.004063a0
add esp, 4
mov byte [edi], al
jmp 0x401ba8
cmp byte [ebp + 1], bl
je 0x401ba9
mov byte [edi], 0x3a
jmp 0x401ba8
cmp ebp, esi
je 0x401ba5
cmp byte [ebp - 1], bl
je 0x401ba5
mov byte [edi], 0x2f
jmp 0x401ba8
mov byte [edi], 0x2d
inc edi
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x401b72
lea ecx, [esp + 0x32c]
push 0x40e0ec
push ecx
mov byte [edi], 0
call fcn.00406320
mov ebp, eax
lea edx, [esp + 0x334]
neg ebp
sbb ebp, ebp
push 0x40e0e8
push edx
neg ebp
call fcn.00406320
neg eax
sbb eax, eax
push str._neto
neg eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x340]
push eax
call fcn.00406320
mov dl, byte [0x40f1c8]
mov ebx, eax
neg ebx
sbb ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x749]
mov byte [esp + 0x748], dl
mov byte [esp + 0x544], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x545]
mov byte [esp + 0x13c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x13d]
mov byte [esp + 0x240], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x241]
mov byte [esp + 0x648], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x649]
mov byte [esp + 0x3c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x3d]
lea edx, [esp + 0x344]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x748]
mov dword [esp + 0x28], 0
stosw word es:[edi], ax
push ecx
push 0x74
push edx
neg ebx
stosb byte es:[edi], al
call fcn.00401a80
lea eax, [esp + 0x550]
lea ecx, [esp + 0x350]
push eax
push 0x76
push ecx
call fcn.00401a80
lea edx, [esp + 0x154]
lea eax, [esp + 0x35c]
push edx
push 0x72
push eax
call fcn.00401a80
add esp, 0x3c
mov dword [esp + 0x14], eax
test eax, eax
jne 0x401d16
lea ecx, [esp + 0x228]
lea edx, [esp + 0x32c]
push ecx
push 0x70
push edx
call fcn.00401a80
add esp, 0xc
mov dword [esp + 0x10], eax
lea eax, [esp + 0x630]
push eax
push 0x6c
push esi
call fcn.00401a80
lea ecx, [esp + 0x30]
push ecx
push 0x6e
push esi
call fcn.00401a80
add esp, 0x18
lea edx, [esp + 0x834]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401d60
lea eax, [esp + 0x834]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
lea ecx, [esp + 0x838]
push str.netOAgent_calling_VISE
push ecx
lea edx, [esp + 0xa44]
push 0
push edx
call fcn.00405adc
lea eax, [esp + 0xa4c]
push eax
call fcn.004010c0
add esp, 0x18
test eax, eax
je 0x401da2
lea ecx, [esp + 0xa38]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401da4
xor ebx, ebx
mov eax, dword [esp + 0xb40]
lea edx, [esp + 0x934]
push 0x104
push edx
push eax
mov dword [0x40eeb0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x934]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f30
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push 0xfffffffffffffff8
push esi
call edi
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll__lread]
mov edx, ebx
mov eax, dword [esp + 0x1c]
neg edx
sbb edx, edx
and edx, 0xf7fc010a
add edx, 0x56495345
cmp eax, edx
jne 0x401ee8
push 4
push 0x40f1c4
push esi
call dword [sym.imp.KERNEL32.dll__lread]
mov eax, dword [0x40f1c4]
push 0
push eax
push esi
call edi
call fcn.00401550
call fcn.00401640
push 1
push 4
push esi
call edi
push 1
push 4
push esi
call edi
push 1
push 4
push esi
call edi
push 1
push 4
push esi
call edi
push esi
call fcn.00401040
push esi
mov dword [esp + 0x28], 0
call fcn.004016a0
add esp, 8
test eax, eax
je 0x401f17
push 1
push 0
push esi
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
call fcn.004018d0
push ebp
lea ecx, [esp + 0x28]
push ebx
lea edx, [esp + 0x638]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x130]
push edx
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x23c]
push ecx
push edx
lea ecx, [esp + 0x548]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x750]
push ecx
push edx
push eax
push 0x40eeb4
lea ecx, [esp + 0x964]
push edi
push ecx
call fcn.004018f0
add esp, 0x38
mov esi, eax
call fcn.00401970
jmp 0x401f22
push esi
call fcn.00401a50
add esp, 4
mov dword [0x40f1c4], eax
test eax, eax
je 0x401f01
push 0
jmp 0x401e2d
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb2c
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov esi, dword [esp + 0x20]
call fcn.00401660
test esi, esi
je 0x401f30
call fcn.004019d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb2c
ret 0x10