Function at 0x4a5786c8
Capabilities:
Check if file exists
Copy file
Create thread
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2b
push 0
push 0
dec ecx
jne 0x4a5786d1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov esi, eax
mov ebx, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4a579973
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
mov edx, dword [0x4a50e488]
call fcn.4a50959c
lea eax, [ebp - 0x40]
mov edx, dword [0x4a50e488]
call fcn.4a50959c
lea eax, [ebp - 0x44]
mov edx, dword [0x4a50e488]
call fcn.4a50959c
cmp dword [ebp + 8], 0
je 0x4a57872f
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
test esi, esi
jne 0x4a57873c
mov byte [ebp - 0x55], 0
jmp 0x4a5797ec
cmp byte [ebp + 0x14], 0
je 0x4a5787f8
cmp byte [ebp + 0xc], 0
jne 0x4a5787f8
mov eax, 0xfa
call fcn.4a554288
test al, al
jne 0x4a5787f8
cmp dword [ebp - 0x54], 0
je 0x4a57877d
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x54]
push eax
call sub.user32.dll_SetWindowPos
push 0x10
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov edi, eax
mov eax, edi
mov edx, esi
call fcn.4a5079d8
lea eax, [edi + 4]
mov edx, dword [ebp - 0x50]
call fcn.4a50ab0c
movzx eax, byte [ebp + 0x18]
mov byte [edi + 8], al
lea eax, [edi + 0xc]
mov edx, ebx
call fcn.4a50ab0c
lea eax, [ebp - 0x64]
push eax
push 0
push edi
push 0x4a578688
push 0
push 0
call sub.kernel32.dll_CreateThread_1
test eax, eax
je 0x4a5787e5
mov byte [ebp - 0x55], 1
cmp dword [ebp + 8], 0
je 0x4a5787da
mov edx, dword [ebp + 8]
mov dword [edx], eax
jmp 0x4a5797ec
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4a5797ec
mov eax, edi
mov edx, dword [0x4a5785f4]
call fcn.4a508a10
push edi
call sub.kernel32.dll_LocalFree_1
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x310]
lea edx, [ebp - 0x20]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x318]
lea edx, [ebp - 0x28]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xd8]
lea edx, [ebp - 0x74]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1a0]
cmp dword [ebp - 0x74], 0
jne 0x4a5788b0
lea edx, [ebp - 0x78]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xd8]
cmp dword [ebp - 0x78], 0
je 0x4a5788b0
lea edx, [ebp - 0x24]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xd8]
lea eax, [ebp - 0x24]
call fcn.4a568bcc
dec eax
jle 0x4a578880
lea eax, [ebp - 0x7c]
push eax
mov edi, dword [0x4a5ed5fc]
mov edi, dword [edi]
mov cl, 0x2c
mov edx, 1
mov eax, dword [ebp - 0x24]
call edi
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x24]
call fcn.4a507a20
lea ecx, [ebp - 0x84]
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.4a568c28
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
call fcn.4a5083c0
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x24]
mov edx, 0x4a579998
call fcn.4a5084e8
jmp 0x4a5788bd
lea edx, [ebp - 0x24]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1a0]
lea ecx, [ebp - 4]
mov edx, 0x4a5799bc
mov eax, esi
call fcn.4a5773d4
lea ecx, [ebp - 8]
mov edx, 0x4a5799e8
mov eax, esi
call fcn.4a5773d4
lea ecx, [ebp - 0xc]
mov edx, 0x4a579a18
mov eax, esi
call fcn.4a57750c
mov eax, dword [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
call fcn.4a554d18
mov eax, dword [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
lea edx, [ebp - 0x20]
mov ecx, dword [ebp - 4]
call fcn.4a554d18
lea eax, [ebp - 0x38]
call fcn.4a568ba8
mov byte [ebp - 0x56], 0
lea eax, [ebp - 0x14]
call fcn.4a507618
lea eax, [ebp - 0x18]
call fcn.4a507618
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x150]
test al, al
jne 0x4a5789a2
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x158]
test al, al
jne 0x4a5789a2
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xf8]
test al, al
jne 0x4a5789a2
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xe0]
test al, al
jne 0x4a5789a2
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xe8]
test al, al
jne 0x4a5789a2
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
jne 0x4a5789a2
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x190]
test al, al
je 0x4a578f8d
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1ac]
test al, al
je 0x4a578de2
lea edx, [ebp - 0x88]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1f8]
mov eax, dword [ebp - 0x88]
lea edx, [ebp - 0x14]
call fcn.4a5524c8
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a5789f1
mov eax, dword [ebp - 0x14]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4a578a2e
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4a578afe
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0x8c]
call fcn.4a507f78
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4a578afe
push 0x7fffffff
lea edx, [ebp - 0x90]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1f8]
mov edx, dword [ebp - 0x90]
mov edi, dword [0x4a5ed494]
mov edi, dword [edi]
mov ecx, 1
mov eax, 0x4a579a40
call edi
test eax, eax
jne 0x4a578afe
push 0x4a579a50
lea edx, [ebp - 0x9c]
xor eax, eax
call fcn.4a5523d4
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.4a512544
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0x94]
call fcn.4a552488
push dword [ebp - 0x94]
push 0x4a579a40
lea edx, [ebp - 0xa0]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1f8]
push dword [ebp - 0xa0]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.4a508570
push 0x4a579a7c
push 0x4a579aa0
push 0x4a579ac4
lea edx, [ebp - 0x14]
mov ecx, 0x4a579af0
xor eax, eax
call fcn.4a554d18
push 0
mov edi, dword [0x4a5ed4b4]
mov edi, dword [edi]
lea eax, [ebp - 0x14]
mov ecx, 0x4a579b18
mov edx, 0x4a579b28
call edi
lea eax, [ebp - 0x2c]
call fcn.4a55268c
cmp dword [ebp - 0x2c], 0
je 0x4a578de2
lea edx, [ebp - 0xa4]
mov eax, dword [ebp - 0x14]
call fcn.4a512544
mov edx, dword [ebp - 0xa4]
lea eax, [ebp - 0x2c]
call fcn.4a508490
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1b4]
test al, al
je 0x4a578b61
lea eax, [ebp - 0x34]
call fcn.4a50aaf4
push eax
push 0x4a579b2c
push ebx
mov eax, dword [ebx]
call dword [eax]
test eax, eax
jne 0x4a578b61
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
je 0x4a578b61
xor eax, eax
jmp 0x4a578b63
mov al, 1
mov byte [ebp - 0x65], al
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1b4]
test al, al
je 0x4a578c05
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a578ba1
push 0
mov eax, dword [ebp - 0x2c]
call fcn.4a5082f8
push eax
mov eax, dword [ebp - 0x14]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x4a578bf6
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4a578c05
push 0
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 0x2c]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0xa8]
call fcn.4a507f78
push eax
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0xac]
call fcn.4a507f78
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4a578c05
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1bc]
mov byte [ebp - 0x56], al
jmp 0x4a578c49
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a578c21
mov eax, dword [ebp - 0x2c]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x4a578c45
lea eax, [ebp - 0xb0]
mov edx, dword [ebp - 0x2c]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0xb0]
call fcn.4a507f78
push eax
call sub.kernel32.dll_DeleteFileA
mov byte [ebp - 0x65], 1
cmp byte [ebp - 0x65], 0
je 0x4a578d4b
lea eax, [ebp - 0x34]
call fcn.4a50aaf4
push eax
push 0x4a579b2c
push ebx
mov eax, dword [ebx]
call dword [eax]
test eax, eax
jne 0x4a578c76
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x20]
test al, al
je 0x4a578c7a
xor eax, eax
jmp 0x4a578c7c
mov al, 1
mov byte [ebp - 0x66], al
push 1
push ebx
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x2c]
call fcn.4a577944
test al, al
jne 0x4a578d3b
lea eax, [ebp - 0xb4]
call fcn.4a55268c
push dword [ebp - 0xb4]
lea eax, [ebp - 0xb8]
push eax
call sub.kernel32.dll_GetTickCount_1
mov cx, 0x30
mov edx, 1
call fcn.4a510fe8
push dword [ebp - 0xb8]
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x14]
call fcn.4a512544
push dword [ebp - 0xbc]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.4a508570
push 1
push ebx
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x2c]
call fcn.4a577944
test al, al
jne 0x4a578d3b
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a578d17
mov eax, dword [ebp - 0x2c]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x4a578d3b
lea eax, [ebp - 0xc0]
mov edx, dword [ebp - 0x2c]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0xc0]
call fcn.4a507f78
push eax
call sub.kernel32.dll_DeleteFileA
cmp byte [ebp - 0x66], 0
je 0x4a578d4b
xor edx, edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x24]
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a578d6a
mov eax, dword [ebp - 0x2c]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4a578d9f
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4a578dde
lea eax, [ebp - 0xc4]
mov edx, dword [ebp - 0x2c]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0xc4]
call fcn.4a507f78
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4a578dde
lea edx, [ebp - 0xc8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1cc]
mov eax, dword [ebp - 0xc8]
push eax
push 0x4a579b48
lea edx, [ebp - 0xcc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1c4]
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
mov edi, dword [eax]
call dword [edi + 0x1c]
jmp 0x4a578de2
mov byte [ebp - 0x56], 0
cmp dword [ebp - 0x50], 0
je 0x4a578eee
lea eax, [ebp - 0x18]
call fcn.4a55268c
cmp dword [ebp - 0x18], 0
je 0x4a578eee
lea eax, [ebp - 0x18]
mov edx, 0x4a579b68
call fcn.4a508490
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1d4]
cmp eax, 0x19000
jg 0x4a578e2c
je 0x4a578e48
sub eax, 4
je 0x4a578e3c
sub eax, 0xc7fc
je 0x4a578e42
jmp 0x4a578e5a
sub eax, 0x32000
je 0x4a578e4e
sub eax, 0x19000
je 0x4a578e54
jmp 0x4a578e5a
mov byte [ebp - 0x5d], 1
jmp 0x4a578e5e
mov byte [ebp - 0x5d], 2
jmp 0x4a578e5e
mov byte [ebp - 0x5d], 3
jmp 0x4a578e5e
mov byte [ebp - 0x5d], 4
jmp 0x4a578e5e
mov byte [ebp - 0x5d], 5
jmp 0x4a578e5e
mov byte [ebp - 0x5d], 0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a578e7a
mov eax, dword [ebp - 0x18]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x4a578e9e
lea eax, [ebp - 0xd0]
mov edx, dword [ebp - 0x18]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0xd0]
call fcn.4a507f78
push eax
call sub.kernel32.dll_DeleteFileA
movzx ecx, byte [ebp - 0x5d]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x50]
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
je 0x4a578eee
lea edx, [ebp - 0xd4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1ec]
mov eax, dword [ebp - 0xd4]
push eax
push 0x4a579b94
lea edx, [ebp - 0xd8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1e4]
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
mov edi, dword [eax]
call dword [edi + 0x1c]
lea edx, [ebp - 0xdc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1f4]
mov eax, dword [ebp - 0xdc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4a578f64
inc eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xe0]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1f4]
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x5c]
mov edi, dword [eax]
call dword [edi + 0x18]
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
mov edi, dword [eax]
call dword [edi + 0x1c]
inc dword [ebp - 0x5c]
dec dword [ebp - 0x6c]
jne 0x4a578f19
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x54]
push eax
movzx eax, byte [ebp + 0x18]
push eax
movzx eax, byte [ebp + 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov eax, ebx
call fcn.4a568e60
jmp 0x4a578f95
lea eax, [ebp - 0x48]
call fcn.4a50aaf4
lea edx, [ebp - 0xe4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1a8]
mov eax, dword [ebp - 0xe4]
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp dword [ebp - 0x24], 0
je 0x4a578fc9
mov ecx, dword [ebp - 0x24]
mov edx, 0x4a579bb8
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
call dword [edi + 0x28]
cmp dword [ebp - 0x1c], 0
je 0x4a578fdf
mov ecx, dword [ebp - 0x1c]
mov edx, 0x4a579bd8
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
call dword [edi + 0x28]
cmp dword [ebp - 0x20], 0
je 0x4a578ff5
mov ecx, dword [ebp - 0x20]
mov edx, 0x4a579bfc
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
call dword [edi + 0x28]
cmp dword [ebp - 0x28], 0
je 0x4a57900b
mov ecx, dword [ebp - 0x28]
mov edx, 0x4a579c1c
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
call dword [edi + 0x28]
mov byte [ebp - 0x55], 0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xe0]
test al, al
jne 0x4a57904b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xe8]
test al, al
jne 0x4a57904b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
jne 0x4a57904b
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xf8]
test al, al
je 0x4a57944b
lea edx, [ebp - 0xe8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
cmp dword [ebp - 0xe8], 0
je 0x4a57944b
movzx eax, byte [ebp + 0x18]
xor al, 1
call fcn.4a5697ac
test al, al
je 0x4a57944b
lea edx, [ebp - 0x4c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xf8]
test al, al
jne 0x4a5790c5
cmp dword [ebp - 0x4c], 0
je 0x4a5790c5
mov eax, dword [ebp - 0x4c]
call fcn.4a507af4
mov edx, dword [ebp - 0x4c]
cmp byte [edx + eax - 1], 0x2f
jne 0x4a5790c5
mov eax, dword [ebp - 0x4c]
call fcn.4a507af4
mov edx, eax
lea eax, [ebp - 0x4c]
mov ecx, 1
call fcn.4a507ff0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x108]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x110]
push eax
push 0
lea edx, [ebp - 0xec]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x118]
mov eax, dword [ebp - 0xec]
push eax
lea edx, [ebp - 0xf0]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x120]
mov eax, dword [ebp - 0xf0]
push eax
lea edx, [ebp - 0xf4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x128]
mov eax, dword [ebp - 0xf4]
push eax
lea edx, [ebp - 0xf8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x130]
mov eax, dword [ebp - 0xf8]
push eax
mov eax, dword [0x4a5e8430]
push eax
mov eax, dword [0x4a5e8434]
push eax
mov eax, dword [0x4a5e8438]
push eax
mov eax, dword [0x4a5e843c]
push eax
push ebx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x4a56eb00]
call fcn.4a57039c
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 4]
mov edx, 0x4a579c3c
mov eax, esi
call fcn.4a5773d4
lea ecx, [ebp - 8]
mov edx, 0x4a579c64
mov eax, esi
call fcn.4a5773d4
lea ecx, [ebp - 0xc]
mov edx, 0x4a579c94
mov eax, esi
call fcn.4a5773d4
lea ecx, [ebp - 0x10]
mov edx, 0x4a579cb0
mov eax, esi
call fcn.4a5773d4
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xe0]
test al, al
je 0x4a579259
lea edx, [ebp - 0xfc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x138]
mov eax, dword [ebp - 0xfc]
push eax
lea edx, [ebp - 0x100]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x140]
mov eax, dword [ebp - 0x100]
push eax
lea edx, [ebp - 0x104]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x148]
mov eax, dword [ebp - 0x104]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0x108]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x308]
mov eax, dword [ebp - 0x108]
push eax
lea edx, [ebp - 0x10c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x300]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x70]
pop ecx
call fcn.4a5730f8
mov byte [ebp - 0x55], al
jmp 0x4a579443
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xe8]
test al, al
je 0x4a57937c
mov edi, dword [0x4a5ed474]
mov edi, dword [edi]
lea eax, [ebp - 0x10]
mov edx, 0x4a579ccc
call edi
mov edi, dword [0x4a5ed318]
mov edi, dword [edi]
lea eax, [ebp - 0x10]
mov dl, 0x2c
call edi
lea eax, [ebp - 0x110]
push eax
mov edi, dword [0x4a5ed5fc]
mov edi, dword [edi]
mov cl, 0x2c
mov edx, 2
mov eax, dword [ebp - 0x10]
call edi
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x10]
call fcn.4a507a20
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.4a5086a0
mov eax, dword [ebp - 0x10]
mov edx, 0x4a579cf8
call fcn.4a508620
jne 0x4a5792e1
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.4a507a20
lea edx, [ebp - 0x114]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x138]
mov eax, dword [ebp - 0x114]
push eax
lea edx, [ebp - 0x118]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x140]
mov eax, dword [ebp - 0x118]
push eax
lea edx, [ebp - 0x11c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x148]
mov eax, dword [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0x120]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x308]
mov eax, dword [ebp - 0x120]
push eax
lea edx, [ebp - 0x124]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x300]
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x70]
pop ecx
call fcn.4a574a84
mov byte [ebp - 0x55], al
jmp 0x4a579443
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4a579426
lea edx, [ebp - 0x128]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x138]
mov eax, dword [ebp - 0x128]
push eax
lea edx, [ebp - 0x12c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x140]
mov eax, dword [ebp - 0x12c]
push eax
lea edx, [ebp - 0x130]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x148]
mov eax, dword [ebp - 0x130]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0x134]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x308]
mov eax, dword [ebp - 0x134]
push eax
lea edx, [ebp - 0x138]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x300]
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x70]
pop ecx
call fcn.4a5767f8
mov byte [ebp - 0x55], al
jmp 0x4a579443
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x70]
call fcn.4a572658
mov byte [ebp - 0x55], al
mov eax, dword [ebp - 0x70]
call fcn.4a505b78
cmp byte [ebp - 0x55], 0
jne 0x4a5795ab
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x150]
test al, al
je 0x4a5794c3
cmp dword [ebp - 0x28], 0
je 0x4a5794b5
movzx eax, byte [ebp + 0x18]
xor al, 1
call fcn.4a5697ac
test al, al
je 0x4a5794b5
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [0x4a5e8458]
push eax
push 0
push 0
mov eax, dword [ebp - 0x48]
push eax
push ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.4a56e764
test al, al
jne 0x4a5794b9
xor eax, eax
jmp 0x4a5794bb
mov al, 1
mov byte [ebp - 0x55], al
jmp 0x4a5795ab
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x158]
test al, al
je 0x4a5795ab
cmp dword [ebp - 0x28], 0
je 0x4a5795a2
lea edx, [ebp - 0x13c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x160]
cmp dword [ebp - 0x13c], 0
je 0x4a5795a2
movzx eax, byte [ebp + 0x18]
xor al, 1
call fcn.4a5697ac
test al, al
je 0x4a5795a2
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
push 0
lea edx, [ebp - 0x140]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x160]
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x144]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x180]
mov eax, dword [ebp - 0x144]
push eax
lea edx, [ebp - 0x148]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x188]
mov eax, dword [ebp - 0x148]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x178]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x168]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x170]
push eax
mov eax, dword [ebp - 0x48]
push eax
push ebx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.4a56e764
test al, al
jne 0x4a5795a6
xor eax, eax
jmp 0x4a5795a8
mov al, 1
mov byte [ebp - 0x55], al
cmp dword [ebp - 0x48], 0
je 0x4a5795b9
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
call dword [edx + 0x38]
cmp dword [ebp - 0x18], 0
je 0x4a579613
cmp byte [ebp - 0x55], 0
jne 0x4a5795d3
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x190]
test al, al
jne 0x4a579613
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a5795ef
mov eax, dword [ebp - 0x18]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x4a579613
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 0x18]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0x14c]
call fcn.4a507f78
push eax
call sub.kernel32.dll_DeleteFileA
cmp byte [ebp - 0x55], 0
jne 0x4a579729
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x190]
test al, al
je 0x4a57964d
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x54]
push eax
movzx eax, byte [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
call fcn.4a569a1c
mov byte [ebp - 0x55], al
cmp byte [ebp - 0x55], 0
jne 0x4a5796a7
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x198]
test al, al
je 0x4a5796a7
cmp byte [ebp + 0x18], 0
jne 0x4a5796a7
mov byte [ebp - 0x56], 0
cmp dword [ebp - 0x54], 0
je 0x4a579686
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x54]
push eax
call sub.user32.dll_SetWindowPos
cmp dword [ebp - 0x3c], 0
je 0x4a579696
lea eax, [ebp - 0x20]
mov edx, esi
call fcn.4a507a20
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
call fcn.4a569f70
mov byte [ebp - 0x55], al
cmp byte [ebp - 0x55], 0
jne 0x4a579729
cmp byte [ebp + 0x18], 0
jne 0x4a579729
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a5796ea
push 0x10
push 0
lea edx, [ebp - 0x150]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x360]
mov eax, dword [ebp - 0x150]
call fcn.4a5082f8
push eax
mov eax, dword [ebp - 0x54]
push eax
call sub.user32.dll_MessageBoxW
jmp 0x4a579729
push 0x10
push 0
lea edx, [ebp - 0x158]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x360]
mov edx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0x154]
call fcn.4a507f78
push eax
mov eax, dword [ebp - 0x54]
push eax
call sub.user32.dll_MessageBoxA
cmp byte [ebp - 0x55], 1
jne 0x4a5797ec
lea eax, [ebp - 0x34]
call fcn.4a50aaf4
push eax
push 0x4a579b2c
push ebx
mov eax, dword [ebx]
call dword [eax]
test eax, eax
jne 0x4a579754
mov dl, 1
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp byte [ebp - 0x56], 0
je 0x4a5797ec
cmp dword [ebp - 0x14], 0
je 0x4a5797ec
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1bc]
test al, al
je 0x4a5797ec
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a5797a2
push 0
mov eax, dword [ebp - 0x14]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 0x14]
call fcn.4a5082f8
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x4a5797ec
push 0
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0x15c]
call fcn.4a507f78
push eax
call sub.kernel32.dll_SetFileAttributesA
lea eax, [ebp - 0x160]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.4a508124
mov eax, dword [ebp - 0x160]
call fcn.4a507f78
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a57997d
lea eax, [ebp - 0x160]
mov edx, 2
call fcn.4a5076a8
lea eax, [ebp - 0x158]
call fcn.4a507618
lea eax, [ebp - 0x154]
call fcn.4a50763c
lea eax, [ebp - 0x150]
call fcn.4a507618
lea eax, [ebp - 0x14c]
call fcn.4a50763c
lea eax, [ebp - 0x148]
mov edx, 2
call fcn.4a507678
lea eax, [ebp - 0x140]
mov edx, 2
call fcn.4a5076a8
lea eax, [ebp - 0x138]
mov edx, 0x14
call fcn.4a507678
lea eax, [ebp - 0xe8]
call fcn.4a50763c
lea eax, [ebp - 0xe4]
call fcn.4a50aaf4
lea eax, [ebp - 0xe0]
mov edx, dword [0x4a55123c]
mov ecx, 2
call fcn.4a508a60
lea eax, [ebp - 0xd8]
mov edx, 2
call fcn.4a507678
lea eax, [ebp - 0xd0]
call fcn.4a50763c
lea eax, [ebp - 0xcc]
mov edx, 2
call fcn.4a507678
lea eax, [ebp - 0xc4]
mov edx, 2
call fcn.4a5076a8
lea eax, [ebp - 0xbc]
mov edx, 3
call fcn.4a507678
lea eax, [ebp - 0xb0]
mov edx, 3
call fcn.4a5076a8
lea eax, [ebp - 0xa4]
mov edx, 6
call fcn.4a507678
lea eax, [ebp - 0x8c]
call fcn.4a50763c
lea eax, [ebp - 0x88]
call fcn.4a507618
lea eax, [ebp - 0x84]
call fcn.4a50763c
lea eax, [ebp - 0x80]
mov edx, 4
call fcn.4a507678
lea eax, [ebp - 0x4c]
call fcn.4a50763c
lea eax, [ebp - 0x48]
call fcn.4a50aaf4
lea eax, [ebp - 0x44]
mov edx, dword [0x4a50e488]
mov ecx, 3
call fcn.4a508a60
lea eax, [ebp - 0x38]
call fcn.4a50aaf4
lea eax, [ebp - 0x34]
call fcn.4a50aaf4
lea eax, [ebp - 0x30]
call fcn.4a50aaf4
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.4a507678
ret