Function at 0x438540
Capabilities:
Check if file exists
Check mutex on windows
Copy file
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59db74
mov eax, dword fs:[0]
push eax
sub esp, 0x8f4
mov eax, dword [0x60f074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00477f50
mov esi, eax
mov dword [ebp - 0x838], 0
push 6
xor eax, eax
mov dword [ebp - 0x834], 7
push str.update
lea ecx, [ebp - 0x848]
mov word [ebp - 0x848], ax
call fcn.00405c70
lea edx, [ebp - 0x848]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8f0]
call fcn.00471250
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 2
call fcn.00405c10
lea eax, [ebp - 0x8f0]
mov ecx, esi
push eax
lea eax, [ebp - 0x8a8]
push eax
call fcn.004787c0
push eax
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 3
call fcn.00405a50
lea ecx, [ebp - 0x8a8]
call fcn.00405c10
push 0x5cb60c
lea ecx, [ebp - 0x860]
mov byte [ebp - 4], 4
call fcn.0042b3b0
test al, al
jne 0x4389f4
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00576a54
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
cmovae eax, dword [ebp - 0x860]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4389f4
lea ecx, [ebp - 0x860]
call fcn.0047fc70
mov dword [ebp - 0x8f4], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x4389e9
mov edx, dword [eax]
lea ecx, [ebp - 0x8a8]
push ecx
mov ecx, eax
call dword [edx + 0x2c]
lea ecx, [ebp - 0x8d8]
mov byte [ebp - 4], 6
call fcn.00483b50
sub esp, 0x18
mov byte [ebp - 4], 7
lea eax, [ebp - 0x8a8]
mov dword [ebp - 0x8f8], esp
mov ecx, esp
push eax
call fcn.00405a50
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x8d8]
mov ecx, esp
push eax
call fcn.00405a50
mov byte [ebp - 4], 7
call fcn.00483db0
add esp, 0x30
test al, al
je 0x4389d3
push str..
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00576ab8
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x410
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
lea eax, [ebp - 0x890]
lea ecx, [ebp - 0x860]
push eax
call fcn.00476c30
cmp dword [eax + 0x14], 8
jb 0x43876a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x5cd1f4
lea eax, [ebp - 0x830]
push 0x208
push eax
call fcn.00437de0
add esp, 0x14
lea ecx, [ebp - 0x890]
call fcn.00405c10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexW]
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov word [ebp - 0x83f], 1
mov dword [ebp - 0x83c], 0
mov byte [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
mov byte [ebp - 0x840], 1
nop
push str.6666666_51e1_4e37_adfc_f835a61d96e7
push 0
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4387f2
push 0x64
call edi
inc esi
cmp esi, 0x64
jl 0x4387d0
xor eax, eax
mov dword [ebp - 0x880], 0
lea ecx, [ebp - 0x830]
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438820
sub ecx, edx
lea eax, [ebp - 0x830]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x890]
call fcn.00405c70
push ecx
lea edx, [ebp - 0x840]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x890]
call fcn.00476430
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x890]
call fcn.00405c10
lea eax, [ebp - 0x8c0]
push eax
lea ecx, [ebp - 0x860]
call fcn.00476dc0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x8c0]
cmp dword [ebp - 0x8ac], 8
push str.ExTab.exe
cmovae eax, dword [ebp - 0x8c0]
push eax
call fcn.005768e9
add esp, 8
test eax, eax
je 0x4388ca
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
push 0
cmovae eax, dword [ebp - 0x860]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x3a8
lea edx, [ebp - 0x860]
lea ecx, [ebp - 0x878]
call fcn.00472c20
add esp, 4
cmp dword [ebp - 0x864], 0x10
lea eax, [ebp - 0x878]
push 5
cmovae eax, dword [ebp - 0x878]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0xc
push eax
push 0
lea ecx, [ebp - 0x83c]
call fcn.00439c00
push ecx
lea eax, [ebp - 0x83c]
push eax
call fcn.004834c0
lea ecx, [ebp - 0x83c]
call fcn.004144b0
mov edx, dword [ebp - 0x864]
cmp edx, 0x10
jb 0x438988
mov ecx, dword [ebp - 0x878]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43897e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438a55
push edx
push ecx
call fcn.0055053d
add esp, 8
lea ecx, [ebp - 0x8c0]
mov dword [ebp - 0x868], 0
mov dword [ebp - 0x864], 0xf
mov byte [ebp - 0x878], 0
call fcn.00405c10
lea ecx, [ebp - 0x8d8]
call fcn.00405c10
lea ecx, [ebp - 0x8a8]
call fcn.00405c10
lea ecx, [ebp - 0x8f4]
call fcn.004396b0
mov bl, 1
jmp 0x4389f6
lea ecx, [ebp - 0x8d8]
call fcn.00405c10
lea ecx, [ebp - 0x8a8]
call fcn.00405c10
lea ecx, [ebp - 0x8f4]
call fcn.004396b0
xor bl, bl
lea ecx, [ebp - 0x860]
call fcn.00405c10
mov edx, dword [ebp - 0x8dc]
cmp edx, 0x10
jb 0x438a37
mov ecx, dword [ebp - 0x8f0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438a2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438a5a
push edx
push ecx
call fcn.0055053d
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550156
mov esp, ebp
pop ebp
ret
call fcn.00572795
call fcn.00572795
int3