Function at 0x4059a0
Capabilities:
Delete file
Get file version info
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42b21c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x120], 1
mov dword [ebp - 0x128], 0
mov eax, dword [0x42c308]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x405d04
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x110], ecx
cmp dword [ebp - 0x110], 0
je 0x405cff
mov edx, dword [ebp - 0x110]
cmp dword [edx + 0xc], 0
je 0x405cff
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x421590
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
add eax, 4
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [0x42beb8], 0
mov dword [ebp - 0x10c], 0
push 4
mov edx, dword [ebp + 8]
push edx
push str.ALL
call fcn.004115b0
add esp, 0xc
test eax, eax
je 0x405ac5
push 4
mov eax, dword [ebp - 0x110]
add eax, 4
push eax
push str.ALL
call fcn.004115b0
add esp, 0xc
test eax, eax
je 0x405ac5
push 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x110]
add edx, 4
push edx
call fcn.004115b0
add esp, 0xc
test eax, eax
jne 0x405cff
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x108]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x405c07
mov edx, dword [ebp - 0x11c]
add edx, 8
push edx
call fcn.00401160
add esp, 4
mov dword [0x42beb8], eax
mov eax, dword [0x42beb8]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x128]
push edx
lea eax, [ebp - 0x108]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0x421590
mov eax, dword [0x42beb8]
push eax
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x114], 0
jne 0x405bee
cmp dword [ebp - 0x120], 0
je 0x405bee
movzx ecx, word [0x42a098]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 0xa]
cmp ecx, eax
jl 0x405be4
movzx ecx, word [0x42a098]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 0xa]
cmp ecx, eax
jne 0x405ba5
movzx ecx, word [0x42bebc]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 8]
cmp ecx, eax
jl 0x405be4
movzx ecx, word [0x42a098]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 0xa]
cmp ecx, eax
jne 0x405bee
movzx ecx, word [0x42bebc]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 8]
cmp ecx, eax
jne 0x405bee
movzx ecx, word [0x42bfc4]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 0xe]
cmp ecx, eax
jge 0x405bee
mov dword [ebp - 0x114], 6
mov ecx, dword [0x42beb8]
push ecx
call fcn.004011a0
add esp, 4
mov dword [0x42beb8], 0
cmp dword [ebp - 0x114], 0
je 0x405c1d
cmp dword [ebp - 0x114], 6
jne 0x405cff
push 0x104
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00404a10
add esp, 0xc
mov dword [ebp - 0x12c], eax
cmp dword [ebp + 0xc], 0x76
jne 0x405cda
cmp dword [0x42c318], 0
jne 0x405cda
push 0x104
call fcn.00401160
add esp, 4
mov dword [0x42c318], eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [0x42c318]
push edx
call fcn.0040ff00
add esp, 8
lea eax, [ebp - 0x108]
push eax
call fcn.00401210
add esp, 4
mov dword [ebp - 0x124], eax
push 0x5c
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.00406300
add esp, 8
mov dword [ebp - 0x130], eax
push str.ieonflow.dll
mov edx, dword [ebp - 0x130]
push edx
call fcn.0040ff00
add esp, 8
push 4
push 0
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.004011a0
add esp, 4
cmp dword [ebp - 0x12c], 3
jne 0x405cea
push 1
call fcn.00410fe6
cmp dword [ebp - 0x12c], 4
jne 0x405cff
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x118], edx
jmp 0x4059dc
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret