Function at 0x523880
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x523888
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 0x523e33
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x414f90]
call fcn.0040394c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x523ddf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
call fcn.004836a4
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040d4a4
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov ecx, 0x523e4c
call fcn.00404a70
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x318]
call fcn.0040d4e4
mov al, byte [0x523e58]
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x523e64
mov edx, 0x523e70
mov eax, dword [ebp - 4]
call fcn.0040dcc0
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 0x523dc9
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.00408ea0
cmp dword [ebp - 0x14], 0
je 0x523dbd
mov edx, dword [ebp - 0x14]
mov eax, 0x523e7c
call fcn.00404d60
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x5239cb
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.00408ea0
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.00408ea0
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x14]
call fcn.00404804
jmp 0x5239d3
lea eax, [ebp - 0x18]
call fcn.0040476c
cmp dword [ebp - 0x18], 0
jne 0x523a0f
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, 0x523e88
call fcn.00409fbc
mov ecx, dword [ebp - 0x48]
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
call fcn.00404148
jmp 0x523dbd
mov al, byte [0x523ea4]
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, 0x523eb0
mov eax, dword [ebp - 0x18]
call fcn.0040dcc0
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.0040d4a4
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
call fcn.00404804
mov al, byte [0x523ea4]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, 0x523ec4
mov eax, dword [ebp - 0x18]
call fcn.0040dcc0
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0040d4a4
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x18]
call fcn.00404804
mov al, byte [0x523ea4]
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, 0x523ed8
mov eax, dword [ebp - 0x18]
call fcn.0040dcc0
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.0040d4a4
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x18]
call fcn.00404804
mov al, byte [0x523ea4]
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, 0x523ee8
mov eax, dword [ebp - 0x18]
call fcn.0040dcc0
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.0040d4a4
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x18]
call fcn.00404804
mov eax, dword [ebp - 0x14]
call fcn.00409308
test al, al
je 0x523ca5
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, 0x523f00
call fcn.00409fbc
mov eax, dword [ebp - 0x78]
mov edx, 0x523f24
call fcn.005212ac
pop ecx
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x14]
call fcn.004096f8
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
call fcn.00404a70
xor eax, eax
push ebp
push 0x523b93
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x1c]
call fcn.004096c4
mov eax, dword [ebp - 0x90]
call fcn.0040933c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x523be5
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.0040945c
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 0x523c59
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, 0x523f50
call fcn.00409fbc
mov ecx, dword [ebp - 0x9c]
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
call fcn.00404148
mov eax, dword [ebp - 0x1c]
call fcn.00409308
test al, al
jne 0x523dbd
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, 0x523f74
call fcn.00409fbc
mov ecx, dword [ebp - 0xa0]
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
call fcn.00404148
jmp 0x523dbd
mov eax, dword [ebp - 0x14]
call fcn.00409318
test al, al
je 0x523dbd
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, 0x523f8c
call fcn.00409fbc
mov eax, dword [ebp - 0xa4]
mov edx, 0x523f24
call fcn.005212ac
pop ecx
xor eax, eax
push ebp
push 0x523d20
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.0040933c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x523d61
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00484c98
test al, al
jne 0x523dbd
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, 0x523fb8
call fcn.00409fbc
mov ecx, dword [ebp - 0xac]
mov dl, 1
mov eax, dword [0x407f84]
call fcn.0040c93c
call fcn.00404148
inc dword [ebp - 0xc]
dec dword [ebp - 0x28]
jne 0x523943
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523de6
mov eax, dword [ebp - 8]
call fcn.0040397c
ret