Function at 0x47d582
Capabilities:
Copy file
Write file on windows

Disassembly:
push 0x508
mov eax, 0x4c5cf8
call fcn.004ac3e5
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x500], ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x4fc], ebx
jb 0x47d5b3
mov eax, dword [eax]
push eax
lea esi, [ebp - 0x500]
call fcn.00498864
pop ecx
test al, al
je 0x47da2d
push str.main
lea ecx, [ebp - 0x48]
call fcn.0040e774
mov byte [ebp - 4], 1
push dword [ebp - 0x500]
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x508]
call fcn.0047cb9b
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0040a0a5
cmp dword [ebp - 0x508], ebx
je 0x47d657
push str.Item
lea ecx, [ebp - 0x2c]
call fcn.0040e774
mov byte [ebp - 4], 4
push dword [ebp - 0x508]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x514]
call fcn.0047cb9b
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040a0a5
mov eax, dword [ebp - 0x514]
cmp eax, ebx
je 0x47d64c
add eax, 0x2c
mov dword [ebp - 0x4fc], eax
lea ecx, [ebp - 0x514]
call fcn.0047dd0e
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], bl
call fcn.0047dd0e
cmp dword [ebp - 0x4fc], ebx
je 0x47da2d
push 0x4de4e4
lea ecx, [ebp - 0x2c]
call fcn.0040e774
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4fc]
push eax
call fcn.0047caa0
push eax
lea esi, [ebp - 0x80]
call fcn.00410ae9
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.0040a0a5
cmp dword [ebp - 0x70], ebx
je 0x47d6b4
push ebx
push edi
jmp 0x47da25
call fcn.0047cd62
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040e774
push str.homepagetype
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.0040e774
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x4fc]
push eax
call fcn.0047caa0
push eax
lea esi, [ebp - 0x64]
call fcn.00410ae9
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.0040a0a5
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x47d70b
mov eax, esi
push eax
call fcn.004a63a9
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x504], eax
mov dword [esp], str.homepage
call fcn.0040e774
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x4fc]
push eax
call fcn.0047caa0
push eax
lea esi, [ebp - 0xb8]
call fcn.00410ae9
push ebx
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.0040a0a5
mov eax, 0xfde9
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, esi
call fcn.00412bc5
pop ecx
pop ecx
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 8
jb 0x47d772
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x9c]
call fcn.00409d45
push edi
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call fcn.0040a3ed
push dword [ebp - 0x504]
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0047cc7c
lea ecx, [ebp - 0x4ec]
mov dword [ebp - 0x4f8], ebx
mov dword [ebp - 0x4f4], 0x200
mov dword [ebp - 0x4f0], ecx
push eax
lea esi, [ebp - 0x4f8]
mov byte [ebp - 4], 0x12
call fcn.00412a44
mov ecx, dword [ebp - 0x4f8]
mov eax, dword [ebp - 0x4f0]
add esp, 0xc
mov byte [eax + ecx], bl
push dword [ebp - 0x4f0]
lea ecx, [ebp - 0x48]
call fcn.0040e774
push 0x4de4e4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
call fcn.0040e774
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
mov edi, dword [ebp - 0x4fc]
push eax
call fcn.0047dac2
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.0040a00c
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040a0a5
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040a0a5
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2e8], ebx
mov dword [ebp - 0x2e4], 0x200
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2e8]
push eax
mov eax, str.__xml_version_1.0__encoding_utf_8____main__Item
mov byte [ebp - 4], 0x15
call fcn.00412af6
mov eax, dword [edi + 4]
pop ecx
mov ecx, dword [eax]
mov esi, ecx
mov dword [ebp - 0x4fc], esi
cmp ecx, eax
je 0x47d8e4
lea eax, [ebp - 0x2e8]
push eax
mov eax, 0x4dbcb8
call fcn.00412af6
pop ecx
lea ecx, [ebp - 0x2e8]
lea eax, [esi + 0xc]
push ecx
call fcn.00412a1f
pop ecx
lea eax, [ebp - 0x2e8]
push eax
mov eax, 0x4de538
call fcn.00412af6
pop ecx
lea ecx, [ebp - 0x2e8]
lea eax, [esi + 0x28]
push ecx
call fcn.00412a1f
pop ecx
push 0x22
lea eax, [ebp - 0x2e8]
call fcn.00412ee6
pop ecx
lea eax, [ebp - 0x4fc]
call fcn.0047dcd8
mov esi, dword [ebp - 0x4fc]
cmp esi, dword [edi + 4]
jne 0x47d87c
lea eax, [ebp - 0x2e8]
push eax
mov eax, str.___Item___main_
call fcn.00412af6
mov eax, dword [0x4f5464]
pop ecx
cmp eax, ebx
je 0x47d943
call fcn.0047b673
test al, al
je 0x47d943
mov edi, dword [ebp - 0x50c]
lea eax, [ebp - 0x2c]
push str._back
push eax
call fcn.00408817
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x47d926
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x47d92e
mov edi, dword [edi]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.0040a3ed
mov eax, dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2e0]
mov byte [ecx + eax], bl
mov esi, dword [ebp - 0x2e0]
mov dword [ebp - 0x504], eax
mov eax, dword [ebp - 0x50c]
cmp dword [eax + 0x14], 8
jb 0x47d96c
mov eax, dword [eax]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47d9b9
mov eax, dword [ebp - 0x504]
cmp eax, ebx
jg 0x47d9a1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x47d998
sub eax, edx
push ebx
lea ecx, [ebp - 0x504]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2dc]
cmp dword [ebp - 0x2e0], eax
je 0x47d9d3
push dword [ebp - 0x2e0]
call fcn.004a5f5b
pop ecx
lea eax, [ebp - 0x4ec]
cmp dword [ebp - 0x4f0], eax
je 0x47d9ed
push dword [ebp - 0x4f0]
call fcn.004a5f5b
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x9c]
call fcn.0040a3ed
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0xb8]
call fcn.0040a0a5
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.0040a0a5
push ebx
push esi
lea ecx, [ebp - 0xd4]
call fcn.0040a0a5
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.0040a0a5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x500], ebx
je 0x47da44
push dword [ebp - 0x500]
call fcn.00498922
call fcn.004ac468
ret