Function at 0x524c84
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x524c8c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c0c
xor eax, eax
push ebp
push 0x525237
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x414fc4]
call fcn.0040394c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5251e3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
call fcn.00483b20
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040d4c8
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov ecx, 0x525250
call fcn.00404a70
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x318]
call fcn.0040d508
mov al, byte [0x52525c]
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x525268
mov edx, 0x525274
mov eax, dword [ebp - 4]
call fcn.0040dce4
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5251cd
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x14]
call fcn.00408eb0
cmp dword [ebp - 0x14], 0
je 0x5251c1
mov edx, dword [ebp - 0x14]
mov eax, 0x525280
call fcn.00404d60
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x524dcf
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x10]
add edx, 3
mov ecx, 0x309
mov eax, dword [ebp - 0x14]
call fcn.00404c7c
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x18]
call fcn.00408eb0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x10]
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404c7c
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00408eb0
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x14]
call fcn.00404804
jmp 0x524dd7
lea eax, [ebp - 0x18]
call fcn.0040476c
cmp dword [ebp - 0x18], 0
jne 0x524e13
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x52528c
call fcn.00409fcc
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040c960
call fcn.00404148
jmp 0x5251c1
mov al, byte [0x5252a8]
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, 0x5252b4
mov eax, dword [ebp - 0x18]
call fcn.0040dce4
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.0040d4c8
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
call fcn.00404804
mov al, byte [0x5252a8]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, 0x5252c8
mov eax, dword [ebp - 0x18]
call fcn.0040dce4
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0040d4c8
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x18]
call fcn.00404804
mov al, byte [0x5252a8]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.00404c7c
mov ecx, dword [ebp - 0x6c]
mov edx, 0x5252dc
mov eax, dword [ebp - 0x18]
call fcn.0040dce4
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.0040d4c8
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x18]
call fcn.00404804
mov al, byte [0x5252a8]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x310]
mov edx, 0x5252ec
mov eax, dword [ebp - 0x18]
call fcn.0040dce4
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.0040d4c8
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x18]
call fcn.00404804
mov eax, dword [ebp - 0x14]
call fcn.00409318
test al, al
je 0x5250a9
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0xb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea edx, [ebp - 0x88]
mov ecx, 1
mov eax, 0x525304
call fcn.00409fcc
mov eax, dword [ebp - 0x78]
mov edx, 0x525328
call fcn.005226b0
pop ecx
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x14]
call fcn.00409708
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00404a70
xor eax, eax
push ebp
push 0x524f97
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x1c]
call fcn.004096d4
mov eax, dword [ebp - 0x90]
call fcn.0040934c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x524fe9
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.0040946c
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404c1c
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404c1c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x52505d
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea edx, [ebp - 0x88]
mov ecx, 1
mov eax, 0x525354
call fcn.00409fcc
mov ecx, dword [ebp - 0x9c]
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040c960
call fcn.00404148
mov eax, dword [ebp - 0x1c]
call fcn.00409318
test al, al
jne 0x5251c1
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x525378
call fcn.00409fcc
mov ecx, dword [ebp - 0xa0]
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040c960
call fcn.00404148
jmp 0x5251c1
mov eax, dword [ebp - 0x14]
call fcn.00409328
test al, al
je 0x5251c1
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0xb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea edx, [ebp - 0x88]
mov ecx, 1
mov eax, 0x525390
call fcn.00409fcc
mov eax, dword [ebp - 0xa4]
mov edx, 0x525328
call fcn.005226b0
pop ecx
xor eax, eax
push ebp
push 0x525124
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.0040934c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x525165
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004853f4
test al, al
jne 0x5251c1
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0xb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 0xb
lea edx, [ebp - 0x88]
mov ecx, 1
mov eax, 0x5253bc
call fcn.00409fcc
mov ecx, dword [ebp - 0xac]
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040c960
call fcn.00404148
inc dword [ebp - 0xc]
dec dword [ebp - 0x28]
jne 0x524d47
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5251ea
mov eax, dword [ebp - 8]
call fcn.0040397c
ret