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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42a21c]
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 [0x42b32c]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x405d14
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x110], ecx
cmp dword [ebp - 0x110], 0
je 0x405d0f
mov edx, dword [ebp - 0x110]
cmp dword [edx + 0xc], 0
je 0x405d0f
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 0x420590
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 [0x42aed8], 0
mov dword [ebp - 0x10c], 0
push 4
mov edx, dword [ebp + 8]
push edx
push str.ALL
call fcn.00410f90
add esp, 0xc
test eax, eax
je 0x405ad5
push 4
mov eax, dword [ebp - 0x110]
add eax, 4
push eax
push str.ALL
call fcn.00410f90
add esp, 0xc
test eax, eax
je 0x405ad5
push 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x110]
add edx, 4
push edx
call fcn.00410f90
add esp, 0xc
test eax, eax
jne 0x405d0f
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 0x405c17
mov edx, dword [ebp - 0x11c]
add edx, 8
push edx
call fcn.00401160
add esp, 4
mov dword [0x42aed8], eax
mov eax, dword [0x42aed8]
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 0x420590
mov eax, dword [0x42aed8]
push eax
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x114], 0
jne 0x405bfe
cmp dword [ebp - 0x120], 0
je 0x405bfe
movzx ecx, word [0x429098]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 0xa]
cmp ecx, eax
jl 0x405bf4
movzx ecx, word [0x429098]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 0xa]
cmp ecx, eax
jne 0x405bb5
movzx ecx, word [0x42aedc]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 8]
cmp ecx, eax
jl 0x405bf4
movzx ecx, word [0x429098]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 0xa]
cmp ecx, eax
jne 0x405bfe
movzx ecx, word [0x42aedc]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 8]
cmp ecx, eax
jne 0x405bfe
movzx ecx, word [0x42afe4]
mov edx, dword [ebp - 0x10c]
movzx eax, word [edx + 0xe]
cmp ecx, eax
jge 0x405bfe
mov dword [ebp - 0x114], 6
mov ecx, dword [0x42aed8]
push ecx
call fcn.004011a0
add esp, 4
mov dword [0x42aed8], 0
cmp dword [ebp - 0x114], 0
je 0x405c2d
cmp dword [ebp - 0x114], 6
jne 0x405d0f
push 0x104
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00404a20
add esp, 0xc
mov dword [ebp - 0x12c], eax
cmp dword [ebp + 0xc], 0x76
jne 0x405cea
cmp dword [0x42b33c], 0
jne 0x405cea
push 0x104
call fcn.00401160
add esp, 4
mov dword [0x42b33c], eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [0x42b33c]
push edx
call fcn.0040f870
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.00406320
add esp, 8
mov dword [ebp - 0x130], eax
push str.ieonflow.dll
mov edx, dword [ebp - 0x130]
push edx
call fcn.0040f870
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 0x405cfa
push 1
call fcn.00410999
cmp dword [ebp - 0x12c], 4
jne 0x405d0f
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x118], edx
jmp 0x4059ec
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af7c
mov esp, ebp
pop ebp
ret