Function at 0x40e7c0
Capabilities:
Copy file
Create process on windows
Delete file
Move file
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45d0c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push ebp
push edi
mov edi, ecx
push str.Update_
lea eax, [esp + 0x14]
lea ebp, [edi + 0x60]
mov dword [esp + 0x20], edi
push ebp
push eax
call fcn.0044f096
push str.System_
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov dword [esp + 0x270], 0
call fcn.0044f096
lea edx, [esp + 0x10]
push 0x4786b4
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x270], 1
call fcn.0044f096
mov eax, dword [0x4790e8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x264], 4
call fcn.0042450f
mov ecx, dword [esp + 0x34]
push 0
push ecx
lea ecx, [esp + 0x94]
mov byte [esp + 0x26c], 5
call fcn.004245d2
test eax, eax
je 0x40efc7
push esi
lea ecx, [esp + 0x90]
call fcn.004247f2
mov edx, dword [esp + 0x90]
push 0x10
lea ecx, [esp + 0x94]
mov dword [esp + 0x34], eax
call dword [edx + 0x38]
test eax, eax
jne 0x40efba
lea ecx, [esp + 0x90]
call fcn.004247b9
test eax, eax
jne 0x40efba
lea eax, [esp + 0x50]
lea ecx, [esp + 0x90]
push eax
call fcn.004249ea
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 6
call fcn.0044ef3a
lea ecx, [esp + 0x50]
mov byte [esp + 0x268], 5
call fcn.0044ee01
lea ecx, [esp + 0x10]
call fcn.0044f28f
mov ecx, dword [esp + 0x10]
push 0x4786b0
push ecx
mov ecx, edi
call fcn.00416bf0
test eax, eax
je 0x40ed93
mov edx, dword [esp + 0x10]
push 0x4786ac
push edx
mov ecx, edi
call fcn.00416bf0
test eax, eax
je 0x40ed93
mov eax, dword [esp + 0x10]
push 0x4787e4
push eax
mov ecx, edi
call fcn.00416bf0
test eax, eax
jne 0x40ebe8
lea ecx, [esp + 0x80]
call fcn.0040db50
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x70]
push edx
push eax
mov byte [esp + 0x274], 0xa
call fcn.0044f030
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x270], 0xb
call fcn.0040dbb0
lea ecx, [esp + 0x6c]
mov esi, eax
mov byte [esp + 0x268], 0xa
call fcn.0044ee01
test esi, esi
je 0x40ebcf
mov ecx, 0x4d
xor eax, eax
lea edi, [esp + 0xac]
lea edx, [esp + 0xac]
rep stosd dword es:[edi], eax
mov edi, 0x478798
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xd2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.LZP1
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0xb0], 1
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0xb1], 0
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 + 0xac]
push ecx
lea ecx, [esp + 0x84]
call fcn.0040df70
test eax, eax
je 0x40eb99
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xb025
push eax
call fcn.0044c0c6
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0040e600
lea edx, [esp + 0xdc]
lea eax, [esp + 0x48]
push edx
push ebp
push eax
call fcn.0044f096
mov eax, dword [eax]
lea ecx, [esp + 0x80]
push eax
mov byte [esp + 0x26c], 0xc
call fcn.0040de40
test eax, eax
je 0x40ea97
lea ecx, [esp + 0xb2]
push str.OtherVer
push ecx
call fcn.0042ce73
add esp, 8
test eax, eax
sete al
test al, al
je 0x40ea97
mov bl, 1
jmp 0x40ea99
xor bl, bl
lea ecx, [esp + 0x48]
mov byte [esp + 0x268], 0xa
call fcn.0044ee01
test bl, bl
je 0x40eb99
push str.Update.ini
lea edx, [esp + 0x78]
push ebp
push edx
call fcn.0044f096
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
push eax
lea eax, [esp + 0xc6]
push eax
push str.OtherVer
push str.System
call edi
lea ecx, [esp + 0x74]
call fcn.0044ee01
mov ecx, dword [0x4790e8]
mov dword [esp + 0x2c], ecx
mov eax, dword [0x481fc8]
mov byte [esp + 0x268], 0xd
cmp eax, 2
jle 0x40eb88
mov edx, dword [0x481fcc]
push 0x5c
mov eax, dword [edx + 8]
push eax
call fcn.0042be62
mov esi, eax
push 0x2e
push esi
call fcn.0042cf22
sub eax, esi
add esp, 0x10
dec eax
inc esi
push eax
push esi
lea ecx, [esp + 0x48]
call fcn.0044ba64
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x26c], 0xe
call fcn.0044ef3a
lea ecx, [esp + 0x40]
mov byte [esp + 0x268], 0xd
call fcn.0044ee01
push str.Update.ini
lea eax, [esp + 0x74]
push ebp
push eax
call fcn.0044f096
mov eax, dword [eax]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xc2]
push eax
push ecx
push str.OtherVer
push edx
call edi
lea ecx, [esp + 0x70]
call fcn.0044ee01
lea ecx, [esp + 0x2c]
mov byte [esp + 0x268], 0xa
call fcn.0044ee01
lea ecx, [esp + 0x80]
call fcn.0040de20
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.0044f030
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [esp + 0x58]
call fcn.0044ee01
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x80]
mov byte [esp + 0x268], 5
call fcn.0040db90
jmp 0x40efba
mov eax, dword [esp + 0x10]
push 0x478150
push eax
mov ecx, edi
call fcn.00416bf0
test eax, eax
jne 0x40efba
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push 0xb023
push edx
call fcn.0044c0c6
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.0044f030
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x1e0]
mov byte [esp + 0x268], 0xf
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1e0]
push eax
push 0x80
push ecx
push 0x47f914
push str.ConfigName
push str.ConfigInfo
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov al, byte [esp + 0x1e0]
test al, al
je 0x40ed82
lea edx, [esp + 0x1e0]
push 0x5f
push edx
call fcn.0042cf22
add esp, 8
test eax, eax
je 0x40ed82
inc eax
lea ecx, [esp + 0x60]
push eax
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.0044f096
push 0x5c
lea edx, [esp + 0x80]
push eax
push edx
mov byte [esp + 0x274], 0x10
call fcn.0044baab
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x274], 0x11
call fcn.0044f030
lea ecx, [esp + 0x7c]
mov byte [esp + 0x268], 0x14
call fcn.0044ee01
lea ecx, [esp + 0x60]
mov byte [esp + 0x268], 0x13
call fcn.0044ee01
mov eax, dword [esp + 0x1c]
push eax
call fcn.00417970
mov ecx, dword [esp + 0x20]
add esp, 4
lea edx, [esp + 0x18]
push ecx
push 0xb026
push edx
call fcn.0044c0c6
mov eax, dword [esp + 0x28]
push 0
push eax
call fcn.0042ce2d
add esp, 0x14
cmp eax, 0xffffffff
je 0x40ed61
xor esi, esi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40ed4e
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 5
jl 0x40ed2e
cmp esi, 5
jne 0x40ed61
mov edx, dword [esp + 0x18]
push 0
push 0x10
push edx
call fcn.00455afe
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x268], 0xf
call fcn.0044ee01
mov byte [esp + 0x268], 5
lea ecx, [esp + 0x24]
jmp 0x40efb1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xb023
push eax
call fcn.0044c0c6
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.0040e600
lea edx, [esp + 0x10]
lea eax, [esp + 0x78]
push edx
push ebp
push eax
call fcn.0044f030
mov eax, dword [eax]
push 0
push eax
call fcn.0042ce2d
add esp, 8
cmp eax, 0xffffffff
lea ecx, [esp + 0x78]
sete bl
call fcn.0044ee01
test bl, bl
je 0x40ee3d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push ebp
push edx
call fcn.0044f030
mov esi, dword [eax]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
mov byte [esp + 0x274], 7
call fcn.0044f030
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
lea ecx, [esp + 0x68]
call fcn.0044ee01
lea ecx, [esp + 0x44]
mov byte [esp + 0x268], 5
call fcn.0044ee01
jmp 0x40efba
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0xb024
push ecx
call fcn.0044c0c6
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x54]
push edx
push ebp
push eax
call fcn.0044f030
mov esi, dword [eax]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
mov byte [esp + 0x274], 8
call fcn.0044f030
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileA]
push 0
push esi
push eax
call edi
test eax, eax
lea ecx, [esp + 0x4c]
sete bl
call fcn.0044ee01
lea ecx, [esp + 0x54]
mov byte [esp + 0x268], 5
call fcn.0044ee01
test bl, bl
je 0x40eebe
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push ebp
push edx
call fcn.0044f030
mov esi, dword [eax]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x274], 9
call fcn.0044f030
mov eax, dword [eax]
push 0
push esi
push eax
call edi
test eax, eax
lea ecx, [esp + 0x34]
sete bl
call fcn.0044ee01
lea ecx, [esp + 0x28]
mov byte [esp + 0x268], 5
call fcn.0044ee01
test bl, bl
je 0x40ef90
mov eax, dword [esp + 0x18]
push 0
push 1
push eax
call fcn.00455afe
cmp eax, 2
mov dword [esp + 0x5c], eax
je 0x40ef8b
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push ebp
push edx
call fcn.0044f030
mov esi, dword [eax]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov byte [esp + 0x274], 9
call fcn.0044f030
mov eax, dword [eax]
push 0
push esi
push eax
call edi
test eax, eax
lea ecx, [esp + 0x34]
sete bl
call fcn.0044ee01
lea ecx, [esp + 0x28]
mov byte [esp + 0x268], 5
call fcn.0044ee01
test bl, bl
jne 0x40ef17
mov eax, dword [esp + 0x5c]
cmp eax, 1
jne 0x40efb6
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
call fcn.0044f030
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [esp + 0x64]
call fcn.0044ee01
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40e873
pop esi
push str.update.bat
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.0044f096
mov eax, dword [eax]
push 6
push eax
call fcn.0042ce2d
add esp, 8
lea ecx, [esp + 0x2c]
test eax, eax
sete bl
call fcn.0044ee01
test bl, bl
je 0x40f02e
mov ebp, dword [ebp]
lea ecx, [esp + 0xa8]
push 0x104
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
lea edx, [esp + 0xa8]
push 0
lea eax, [esp + 0xac]
push edx
push eax
push str.update.bat
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x264], 4
call fcn.0042454c
lea ecx, [esp + 0x14]
mov byte [esp + 0x264], 3
call fcn.0044ee01
lea ecx, [esp + 0xc]
mov byte [esp + 0x264], 2
call fcn.0044ee01
lea ecx, [esp + 0x34]
mov byte [esp + 0x264], 1
call fcn.0044ee01
lea ecx, [esp + 0x38]
mov byte [esp + 0x264], 0
call fcn.0044ee01
lea ecx, [esp + 0x10]
mov dword [esp + 0x264], 0xffffffff
call fcn.0044ee01
mov ecx, dword [esp + 0x25c]
pop edi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x25c
ret