Function at 0x40487c
Capabilities:
Check if file exists
Copy file
Create process on windows
Get common file path
Get file attributes
Move file
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xe40]
sub esp, 0xebc
mov eax, dword [0x426d40]
xor eax, ebp
mov dword [ebp + 0xe3c], eax
mov eax, dword [ebp + 0xe48]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xe4c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00405b4f
cmp dword [ebp - 0x18], 3
pop ecx
pop ecx
jge 0x4048db
push 0x41fd88
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x40567f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ebx
push esi
push 0x104
push dword [eax + 8]
mov esi, 0x428190
push esi
mov dword [0x428188], ecx
call fcn.0040cb6f
xor eax, eax
push 0x5c
push esi
mov word [0x428396], ax
call fcn.0040c25e
xor ebx, ebx
add esp, 0x14
cmp eax, ebx
je 0x404920
cmp word [eax + 2], bx
jne 0x404920
xor ecx, ecx
mov word [eax], cx
push edi
push 0x41fd6c
call fcn.0040d714
test eax, eax
setne byte [ebp - 0x11]
mov dword [esp], 0x41fd50
call fcn.0040d579
pop ecx
call fcn.00401f7e
mov byte [ebp - 1], al
call fcn.0040676c
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
test eax, eax
lea eax, [ebp - 8]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x41fd14
mov edi, 0x80000001
push edi
setne byte [ebp - 2]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push 2
push 1
push ebx
push ebx
push 0x41fcc0
push edi
call esi
test eax, eax
jne 0x4049c9
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push ebx
push ebx
push ebx
push 0x41fcac
push dword [ebp - 8]
call esi
push ebx
push ebx
push ebx
push ebx
push 0x41fc94
push dword [ebp - 8]
call esi
push ebx
push ebx
push ebx
push ebx
push 0x41fc7c
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x18], 3
jle 0x404a11
mov eax, dword [ebp - 0xc]
push dword [eax + 0xc]
call fcn.0040d78e
mov esi, edx
mov edi, eax
and eax, esi
pop ecx
cmp eax, 0xffffffff
jne 0x4049f3
mov byte [0x4287a9], 1
jmp 0x404a11
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
push 0x41fc68
push eax
call fcn.0040c28c
pop ecx
pop ecx
test eax, eax
je 0x404a11
mov byte [0x4287aa], 1
push 0x41fc58
call fcn.0040d714
pop ecx
test eax, eax
je 0x404a32
push 0x41fc48
mov byte [0x4287ac], 1
call fcn.0040d579
pop ecx
cmp byte [0x4287aa], bl
je 0x404a61
lea eax, [ebp + 0x618]
call fcn.004021d1
test al, al
jne 0x404a53
push 0x41fc1c
jmp 0x404cec
push 1
push 0x41fc04
push 0x41fbe4
jmp 0x404a68
push ebx
push ebx
push 0x41fc04
push dword [0x428188]
call fcn.00402262
mov ecx, eax
call fcn.0040702a
push 0x41fbd8
call fcn.00403434
pop ecx
test al, al
jne 0x404a93
push 0x41fbb4
jmp 0x404d25
cmp byte [0x4287a9], bl
je 0x404aa2
push 0x41fb98
jmp 0x404aaf
cmp byte [0x4287aa], bl
je 0x404abc
push 0x41fb78
call fcn.00402262
push eax
call fcn.004070f3
pop ecx
pop ecx
cmp esi, ebx
jl 0x404af6
jg 0x404ac6
cmp edi, ebx
jbe 0x404af6
push edi
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x404af6
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jne 0x405497
cmp byte [0x4287aa], bl
je 0x404b21
lea eax, [ebp + 0xa2c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404b21
lea eax, [ebp + 0xa2c]
push eax
call fcn.0040d250
pop ecx
push 0x41fb64
call fcn.0040d714
test eax, eax
setne al
mov byte [0x4287ab], al
mov dword [esp], 0x41fb50
call fcn.0040d579
or dword [ebp - 8], 0xffffffff
xor eax, eax
mov word [ebp + 0xc34], ax
mov dword [esp], 0x206
lea eax, [ebp + 0xc36]
push ebx
push eax
mov dword [ebp - 0x10], 0x64
call fcn.0040b790
add esp, 0xc
cmp byte [0x4287ab], bl
jne 0x405031
cmp dword [ebp - 0x18], 5
mov al, byte [0x4287a9]
mov cl, byte [0x4287aa]
jg 0x404b95
cmp al, bl
jne 0x404b99
cmp cl, bl
je 0x40504c
cmp al, bl
je 0x404ba0
push 0x428190
jmp 0x404bf1
cmp cl, bl
je 0x404beb
lea eax, [ebp + 0xa2c]
call fcn.004021d1
test al, al
je 0x405497
lea eax, [ebp + 0xa2c]
push 0x5c
push eax
call fcn.0040c25e
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0xa2c]
push eax
push 0x41fb10
mov esi, 0x104
lea edi, [ebp + 0x824]
call fcn.00401933
add esp, 0x10
jmp 0x404c08
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
push 0x41fad8
mov esi, 0x104
lea edi, [ebp + 0x824]
call fcn.00401933
pop ecx
pop ecx
lea eax, [ebp + 0x824]
push ebx
push eax
call fcn.0040d132
pop ecx
pop ecx
test eax, eax
jne 0x404c51
lea eax, [ebp + 0x824]
push eax
call fcn.0040ca98
pop ecx
test eax, eax
je 0x404c51
cmp byte [0x4287a9], bl
jne 0x404c3c
cmp byte [0x4287aa], bl
je 0x404c47
push 0x41f688
call fcn.00403434
pop ecx
push 0x41fab4
jmp 0x404d25
push ebx
push 0x4000000
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp + 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push dword [0x428188]
mov esi, 0x104
push 0x41fa84
lea edi, [ebp + 0xc34]
mov dword [ebp - 8], eax
call fcn.00401933
pop ecx
pop ecx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404ca2
push ebx
call fcn.00406497
pop ecx
cmp dword [ebp - 8], 0xffffffff
je 0x404cc3
cmp byte [ebp - 1], bl
je 0x405031
cmp byte [ebp - 2], bl
je 0x405031
cmp byte [ebp - 0x11], bl
je 0x405031
lea eax, [ebp + 0xc34]
push ebx
push eax
call fcn.0040d132
pop ecx
pop ecx
test eax, eax
jne 0x404cfc
lea eax, [ebp + 0xc34]
push eax
call fcn.0040ca98
pop ecx
test eax, eax
je 0x404cfc
push 0x41fa54
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
jmp 0x404d30
push ebx
push 0x4000000
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp + 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x404d37
push 0x41fa24
call fcn.00402262
push eax
call fcn.004070f3
pop ecx
pop ecx
jmp 0x405497
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
mov eax, dword [ebp - 0x18]
dec eax
push eax
call fcn.00401de1
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x404d5e
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405497
lea eax, [ebp + 0xa2c]
call fcn.004021d1
test al, al
je 0x405497
cmp byte [ebp - 1], bl
je 0x404ecb
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
push dword [eax]
call fcn.004067a1
pop ecx
pop ecx
test eax, eax
je 0x404dfc
cmp dword [ebp - 0x1c], ebx
je 0x404dfc
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 1], 1
call fcn.0040686a
pop ecx
test eax, eax
je 0x404db8
cmp dword [ebp - 0x28], ebx
sete byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x404ecb
lea eax, [ebp + 0x618]
push eax
lea eax, [ebp + 0xa2c]
push eax
call fcn.00405ed0
pop ecx
pop ecx
test eax, eax
je 0x404e17
lea eax, [ebp - 0x20]
push eax
push 0x20119
push ebx
lea eax, [ebp + 0x618]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404e04
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404e21
mov byte [ebp - 1], bl
jmp 0x404ecb
mov al, byte [ebp - 2]
mov byte [ebp - 1], al
cmp al, bl
jne 0x404e2a
mov dword [ebp - 0x10], 0x66
jmp 0x404e21
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], 0x65
cmp byte [ebp - 1], bl
je 0x404ecb
push dword [ebp - 0xc]
push dword [ebp - 0x18]
call fcn.00406db6
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [ebp - 1], al
je 0x404ebf
mov byte [ebp - 2], bl
cmp byte [0x4287a9], bl
jne 0x404e5b
call fcn.00405b52
neg eax
sbb al, al
inc al
mov byte [ebp - 2], al
push 5
mov esi, 0x41f0a4
push esi
call fcn.004065c5
pop ecx
pop ecx
cmp eax, 1
je 0x404ea4
push ebx
push 0x403781
lea ecx, [ebp - 0x40]
call fcn.0040228e
test eax, eax
jne 0x404e90
cmp byte [ebp - 2], bl
je 0x404e90
push ebx
push 1
call fcn.00405bfb
pop ecx
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
call fcn.004065c5
pop ecx
pop ecx
cmp eax, 1
je 0x404ec6
mov dword [ebp - 0x10], 0x67
mov byte [ebp - 1], bl
jmp 0x404ec6
mov dword [ebp - 0x10], 0x68
cmp byte [ebp - 1], bl
jne 0x404ef7
cmp byte [0x4287a9], bl
je 0x404ef2
cmp dword [ebp - 8], 0xffffffff
je 0x404ee2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x428188]
call fcn.004064f5
jmp 0x405017
cmp byte [ebp - 1], bl
je 0x404f4a
cmp byte [0x4287a9], bl
jne 0x404f45
lea eax, [ebp - 2]
push eax
mov byte [ebp - 2], bl
call fcn.00402056
pop ecx
test al, al
je 0x404f45
cmp byte [ebp - 2], bl
je 0x404f45
push ebx
push ebx
push dword [0x428188]
lea eax, [ebp + 0xa2c]
push eax
call fcn.00406982
add esp, 0x10
test eax, eax
jne 0x404f45
push 0x41f9c8
call fcn.0040d8b0
add eax, 0x40
push eax
call fcn.0040d7a4
pop ecx
pop ecx
cmp byte [ebp - 1], bl
jne 0x404fc6
cmp byte [ebp - 0x11], bl
jne 0x404fc6
cmp dword [ebp - 8], 0xffffffff
jne 0x404fc6
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0040b790
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], 0x540
mov dword [ebp - 0x74], ebx
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x70], 0x41f9b8
mov dword [ebp - 0x60], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
push edi
setne byte [ebp - 2]
call fcn.0040b54d
pop ecx
cmp byte [ebp - 2], bl
je 0x404fbe
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404fc6
push 9
call fcn.004034d2
pop ecx
mov ecx, dword [ebp - 0x18]
cmp ecx, 5
jle 0x404feb
movzx eax, byte [0x4287ab]
push eax
mov eax, dword [ebp - 0xc]
add ecx, 0xfffffffb
push ecx
push dword [eax + 0x10]
lea esi, [eax + 0x14]
call fcn.004033e3
add esp, 0xc
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp byte [ebp - 1], bl
jne 0x40501d
cmp byte [ebp - 0x11], bl
jne 0x40500a
cmp dword [ebp - 8], 0xffffffff
je 0x40563e
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call fcn.004034d2
pop ecx
jmp 0x40563e
cmp dword [ebp - 8], 0xffffffff
je 0x40563e
push dword [ebp - 8]
call esi
jmp 0x40563e
cmp byte [0x4287a9], bl
je 0x405044
push 0x428190
call fcn.004023b5
pop ecx
cmp byte [0x4287aa], bl
jne 0x405089
mov esi, 0x428190
push esi
call fcn.0040d250
pop ecx
test eax, eax
je 0x40508e
push esi
call fcn.0040d04e
pop ecx
test eax, eax
jne 0x405497
call fcn.0040cfd5
cmp dword [eax], 0x11
je 0x405497
push esi
call fcn.0040d250
pop ecx
test eax, eax
je 0x40508e
jmp 0x405497
mov esi, 0x428190
push dword [0x428188]
push 0x41f9a4
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
push esi
push 0x41f988
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
cmp byte [0x4287aa], bl
jne 0x405159
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4050cc
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 4]
push eax
call fcn.0040ba14
pop ecx
cmp eax, ebx
je 0x405497
mov edi, eax
mov ecx, esi
sub edi, esi
movzx edx, word [ecx]
mov word [ecx + edi], dx
add ecx, 2
cmp dx, bx
jne 0x4050f4
mov ecx, esi
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x405108
sub ecx, edi
sar ecx, 1
add ecx, ecx
cmp word [ecx + 0x42818e], 0x2f
lea edx, [ecx + eax]
je 0x40514f
cmp word [ecx + 0x42818e], 0x5c
je 0x40514f
lea ecx, [edx - 2]
mov si, word [ecx + 2]
add ecx, 2
cmp si, bx
jne 0x405133
mov edi, ecx
mov esi, 0x41f984
movsd dword es:[edi], dword [esi]
add edx, 2
mov esi, 0x428190
xor ecx, ecx
mov word [edx], cx
mov dword [0x42818c], eax
push 0x104
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x4051dd
push esi
push 0x41f958
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
call fcn.00402262
mov ecx, eax
call fcn.004070de
push 7
call fcn.004034d2
cmp dword [ebp - 8], 0xffffffff
pop ecx
je 0x4051a4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0xc34]
push ebx
push eax
call fcn.0040d132
pop ecx
pop ecx
test eax, eax
jne 0x4051cc
lea eax, [ebp + 0xc34]
push eax
call fcn.0040ca98
pop ecx
test eax, eax
jne 0x405497
mov ecx, dword [ebp - 0x18]
cmp ecx, 5
jle 0x405497
jmp 0x40547a
or dword [ebp - 0x1c], 0xffffffff
cmp dword [ebp - 0x18], 5
jle 0x4054b2
mov esi, 0x208
push esi
lea eax, [ebp + 0xa2c]
push ebx
push eax
call fcn.0040b790
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x40e
mov word [ebp + 0x208], ax
lea eax, [ebp + 0x20a]
push ebx
push eax
call fcn.0040b790
add esp, 0x18
cmp byte [0x4287aa], bl
je 0x4052fa
push ebx
push 0x428190
push dword [edi + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
mov edi, eax
mov eax, dword [ebp - 0xc]
push edi
push dword [eax + 0x14]
lea eax, [ebp + 0x208]
push eax
mov dword [ebp - 0x10], edi
call fcn.0040cb6f
sub esi, dword [ebp - 0x10]
lea eax, [edi + edi]
lea edi, [ebp + eax + 0x208]
lea eax, [eax + 0x428190]
push esi
push eax
push edi
mov dword [ebp - 0x20], eax
call fcn.0040cb6f
mov eax, dword [ebp - 0x20]
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40527f
sub eax, ecx
sar eax, 1
lea edi, [edi + eax*2]
push 0x5c
pop ecx
mov word [edi], cx
or ecx, 0xffffffff
sub ecx, eax
xor eax, eax
add edi, 2
mov word [edi], ax
lea eax, [ebp + 0x618]
add esi, ecx
call fcn.004021d1
test al, al
je 0x405497
push ebx
lea eax, [ebp + 0x618]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x10]
jb 0x4052db
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ecx + 0x14]
push esi
lea eax, [ecx + eax*2]
push eax
push edi
call fcn.0040cb6f
lea eax, [ebp + 0x208]
add esp, 0xc
mov dword [ebp - 0x10], eax
push 0x104
lea eax, [ebp + 0xa2c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x405320
push dword [ebp - 0x10]
push 0x41f92c
jmp 0x405173
cmp byte [0x4287aa], bl
jne 0x4054b2
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405332
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 + 0xa2c]
cmp word [eax], 0x5c
mov ecx, 0x428398
jne 0x405356
add eax, 2
sub eax, ecx
movzx edx, word [eax + ecx]
cmp edx, 0x5c
jne 0x405364
push 0x2f
pop edx
mov word [ecx], dx
add ecx, 2
cmp word [eax + ecx], bx
jne 0x405358
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
mov esi, 0x104
push 0x41f90c
mov edi, 0x4285a0
call fcn.00401933
mov esi, edi
push esi
call fcn.0040ca98
mov eax, dword [ebp - 0xc]
add esp, 0xc
push ebx
push esi
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xor esi, esi
inc esi
push ebx
push ebx
push 3
push ebx
push 6
push 0x40010000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x4054b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push dword [ebp - 0x10]
push esi
push 0x41f8c0
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jle 0x4053ab
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
cmp edi, 0x20
je 0x40549f
push 0x41f868
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
call fcn.00402262
mov ecx, eax
call fcn.004070de
cmp edi, 5
jne 0x405431
push 0x23
jmp 0x405433
push 0x25
call fcn.004034d2
pop ecx
push 0x4285a0
call fcn.0040ca98
cmp dword [ebp - 8], 0xffffffff
pop ecx
je 0x405453
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0xc34]
push ebx
push eax
call fcn.0040d132
pop ecx
pop ecx
test eax, eax
jne 0x405477
lea eax, [ebp + 0xc34]
push eax
call fcn.0040ca98
pop ecx
test eax, eax
jne 0x405497
mov ecx, dword [ebp - 0x18]
movzx eax, byte [0x4287ab]
push eax
mov eax, dword [ebp - 0xc]
add ecx, 0xfffffffb
push ecx
push dword [eax + 0x10]
lea esi, [eax + 0x14]
call fcn.004033e3
add esp, 0xc
xor eax, eax
inc eax
jmp 0x40567c
push 0x41f808
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
mov esi, 0x41e940
cmp byte [0x4287a9], bl
jne 0x4054db
cmp byte [0x4287aa], bl
jne 0x4054db
push ebx
push esi
call fcn.0040d132
pop ecx
pop ecx
test eax, eax
je 0x4054db
push esi
call fcn.0040d04e
pop ecx
push ebx
push 0x4045fb
lea ecx, [ebp - 0x34]
call fcn.0040228e
test eax, eax
jne 0x405507
cmp byte [0x4287a9], bl
jne 0x405507
cmp byte [0x4287aa], bl
jne 0x405507
push 1
push ebx
call fcn.00405bfb
pop ecx
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp dword [ebp - 0x18], 5
jle 0x405541
cmp byte [0x4287aa], bl
jne 0x405541
cmp dword [ebp - 0x1c], 0xffffffff
je 0x405536
push dword [ebp - 0x1c]
call edi
push 0x4285a0
call fcn.0040ca98
pop ecx
cmp byte [0x4287a9], bl
jne 0x4055a0
cmp byte [0x4287aa], bl
jne 0x4055a0
push esi
call fcn.0040d01e
pop ecx
test eax, eax
je 0x4055a0
call fcn.0040cfd5
push dword [eax]
push esi
push 0x41f7d0
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0x10
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
test eax, eax
je 0x40558d
push 0x41f79c
jmp 0x405592
push 0x41f75c
call fcn.00402262
push eax
call fcn.004070f3
add esp, 0xc
call fcn.00402262
mov ecx, eax
call fcn.004070de
cmp dword [ebp - 0x18], 5
jle 0x405671
cmp byte [0x4287a8], bl
je 0x40560f
cmp byte [0x4287ab], bl
jne 0x40560f
lea eax, [ebp + 0xa2c]
call fcn.004021d1
test al, al
je 0x40560f
push ebx
push ebx
push dword [0x428188]
lea eax, [ebp + 0xa2c]
push eax
call fcn.00406982
add esp, 0x10
test eax, eax
jne 0x405602
push 0x41f724
call fcn.00402262
push eax
call fcn.004070f3
pop ecx
pop ecx
lea eax, [ebp + 0xa2c]
push eax
call fcn.00406e1a
pop ecx
cmp dword [ebp - 8], 0xffffffff
je 0x40561a
push dword [ebp - 8]
call edi
lea eax, [ebp + 0xc34]
push ebx
push eax
call fcn.0040d132
pop ecx
pop ecx
test eax, eax
jne 0x405642
lea eax, [ebp + 0xc34]
push eax
call fcn.0040ca98
pop ecx
test eax, eax
je 0x405642
xor eax, eax
jmp 0x40567c
push 0x41f710
call fcn.0040d714
pop ecx
test eax, eax
jne 0x405671
movzx eax, byte [0x4287ab]
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
add ecx, 0xfffffffb
push ecx
push dword [eax + 0x10]
lea esi, [eax + 0x14]
call fcn.004033e3
add esp, 0xc
xor eax, eax
cmp byte [0x4287a8], bl
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe3c]
xor ecx, ebp
call fcn.0040b774
add ebp, 0xe40
leave
ret