Function at 0x5236a8
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x48
push 0
push 0
dec ecx
jne 0x5236b0
push ecx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1b0]
mov edx, dword [0x5298d8]
call fcn.00405ac8
xor eax, eax
push ebp
push 0x5241c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x130]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 8]
lea edx, [ebp - 0x130]
mov ecx, pe_nt_image_headers32
call fcn.0040512c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x304]
mov byte [ebx + 0x468], 0
mov edx, dword [0x533688]
mov edx, dword [edx]
lea eax, [ebp - 0x1b4]
mov ecx, 0x5241d8
call fcn.004051e4
mov edx, dword [ebp - 0x1b4]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov byte [eax + 0x365], 0
mov byte [eax + 0x444], 0
mov eax, dword [eax + 0x374]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov eax, dword [eax + 0x374]
mov edx, 0x5241f0
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
mov edx, dword [ebp - 8]
call fcn.004b9ac0
mov eax, dword [ebp - 8]
call fcn.0040a37c
test al, al
je 0x52379a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.004bbb08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, 0xa
call fcn.00449cb0
call fcn.0052a24c
sub eax, 1
jb 0x5237be
sub eax, 2
je 0x5237d0
jmp 0x5237e0
lea eax, [ebp - 0x10]
mov ecx, 0x5241fc
mov edx, dword [ebp - 8]
call fcn.004051e4
jmp 0x5237e0
lea eax, [ebp - 0x10]
mov ecx, 0x524214
mov edx, dword [ebp - 8]
call fcn.004051e4
push 0xff
lea eax, [ebp - 0x130]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x130]
mov ecx, pe_nt_image_headers32
call fcn.0040512c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, 0x14
call fcn.00449cb0
lea eax, [ebp - 0x1b8]
mov ecx, 0x524228
mov edx, dword [ebp - 0x14]
call fcn.004051e4
mov eax, dword [ebp - 0x1b8]
lea edx, [ebp - 0x1b0]
call fcn.00529bb8
test al, al
je 0x523863
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x190]
call fcn.00405198
mov edx, eax
sub edx, 3
mov ecx, 4
mov eax, dword [ebp - 0x190]
call fcn.004053f8
mov eax, dword [ebp - 0x30]
mov edx, 0x524240
call fcn.004052e4
jne 0x5238ef
push 0
lea eax, [ebp - 0x1bc]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x1bc]
call fcn.00405398
push eax
lea eax, [ebp - 0x1c0]
mov ecx, 0x524228
mov edx, dword [ebp - 0x14]
call fcn.004051e4
mov eax, dword [ebp - 0x1c0]
call fcn.00405398
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x1c4]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x1c4]
mov edx, 0x27f5d
call fcn.00529fe4
lea eax, [ebp - 0x10]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
jmp 0x523ba4
mov eax, dword [ebp - 0x30]
mov edx, 0x524264
call fcn.004052e4
jne 0x52397b
push 0
lea eax, [ebp - 0x1c8]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x1c8]
call fcn.00405398
push eax
lea eax, [ebp - 0x1cc]
mov ecx, 0x524228
mov edx, dword [ebp - 0x14]
call fcn.004051e4
mov eax, dword [ebp - 0x1cc]
call fcn.00405398
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x1d0]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x1d0]
mov edx, 0x2a3ba
call fcn.00529fe4
lea eax, [ebp - 0x10]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
jmp 0x523ba4
mov eax, dword [ebp - 0x30]
mov edx, 0x524274
call fcn.004052e4
jne 0x523a07
push 0
lea eax, [ebp - 0x1d4]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x1d4]
call fcn.00405398
push eax
lea eax, [ebp - 0x1d8]
mov ecx, 0x524228
mov edx, dword [ebp - 0x14]
call fcn.004051e4
mov eax, dword [ebp - 0x1d8]
call fcn.00405398
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x1dc]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x1dc]
mov edx, 0xff28
call fcn.00529fe4
lea eax, [ebp - 0x10]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
jmp 0x523ba4
mov eax, dword [ebp - 0x30]
mov edx, 0x524284
call fcn.004052e4
jne 0x523a93
push 0
lea eax, [ebp - 0x1e0]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x1e0]
call fcn.00405398
push eax
lea eax, [ebp - 0x1e4]
mov ecx, 0x524228
mov edx, dword [ebp - 0x14]
call fcn.004051e4
mov eax, dword [ebp - 0x1e4]
call fcn.00405398
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x1e8]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x1e8]
mov edx, 0x15086
call fcn.00529fe4
lea eax, [ebp - 0x10]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
jmp 0x523ba4
mov eax, dword [ebp - 0x30]
mov edx, 0x524294
call fcn.004052e4
jne 0x523b1f
push 0
lea eax, [ebp - 0x1ec]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x1ec]
call fcn.00405398
push eax
lea eax, [ebp - 0x1f0]
mov ecx, 0x524228
mov edx, dword [ebp - 0x14]
call fcn.004051e4
mov eax, dword [ebp - 0x1f0]
call fcn.00405398
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x1f4]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
mov eax, dword [ebp - 0x1f4]
mov edx, 0x10c6a
call fcn.00529fe4
lea eax, [ebp - 0x10]
mov ecx, 0x524250
mov edx, dword [ebp - 8]
call fcn.004051e4
jmp 0x523ba4
lea eax, [ebp - 0xc]
mov ecx, 0x524228
mov edx, dword [ebp - 0x14]
call fcn.004051e4
lea ecx, [ebp - 0x1f8]
mov edx, 0x5242a4
mov eax, dword [ebp - 0xc]
call fcn.0040a6c8
mov edx, dword [ebp - 0x1f8]
lea eax, [ebp - 0xc]
call fcn.00404f54
lea eax, [ebp - 0x1fc]
mov ecx, 0x524228
mov edx, dword [ebp - 0x14]
call fcn.004051e4
mov eax, dword [ebp - 0x1fc]
mov edx, dword [ebp - 0xc]
call fcn.0040a61c
test al, al
je 0x523ba4
push 0
lea eax, [ebp - 0x200]
mov ecx, 0x524228
mov edx, dword [ebp - 0x14]
call fcn.004051e4
mov eax, dword [ebp - 0x200]
call fcn.00405398
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405398
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, 0x1e
call fcn.00449cb0
mov dl, 1
mov eax, dword [0x43cd68]
call fcn.0043ce68
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x523cad
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x1c]
call fcn.0043cf44
xor ecx, ecx
mov edx, 0x5242b4
mov eax, dword [ebp - 0x1c]
call fcn.0043cfa8
lea ecx, [ebp - 0x20]
mov edx, 0x5242f0
mov eax, dword [ebp - 0x1c]
call fcn.0043d190
lea ecx, [ebp - 0x24]
mov edx, 0x524310
mov eax, dword [ebp - 0x1c]
call fcn.0043d190
lea ecx, [ebp - 0x28]
mov edx, 0x524330
mov eax, dword [ebp - 0x1c]
call fcn.0043d190
mov ecx, 0x524344
mov edx, 0x5242f0
mov eax, dword [ebp - 0x1c]
call fcn.0043d164
mov ecx, 0x524344
mov edx, 0x524310
mov eax, dword [ebp - 0x1c]
call fcn.0043d164
mov ecx, 0x524344
mov edx, 0x524330
mov eax, dword [ebp - 0x1c]
call fcn.0043d164
mov eax, dword [ebp - 0x1c]
call fcn.0043cf14
xor ecx, ecx
mov edx, 0x524358
mov eax, dword [ebp - 0x1c]
call fcn.0043cfa8
lea ecx, [ebp - 0x2c]
mov edx, 0x524330
mov eax, dword [ebp - 0x1c]
call fcn.0043d190
mov ecx, 0x524344
mov edx, 0x524330
mov eax, dword [ebp - 0x1c]
call fcn.0043d164
mov eax, dword [ebp - 0x1c]
call fcn.0043cf14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523cb4
mov eax, dword [ebp - 0x1c]
call fcn.00403f6c
ret