Function at 0x10005770
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016c8e6
mov eax, dword fs:[0]
push eax
mov eax, 0x24b0
call fcn.10110210
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x24a8], eax
test eax, eax
je 0x10005899
test edi, edi
je 0x10005899
mov eax, dword [ebx]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
mov eax, dword [eax + 0x84]
call eax
test al, al
jne 0x100057db
mov al, 1
jmp 0x1000589b
mov eax, dword [edi]
lea ecx, [ebp - 0x24b4]
push ecx
push 0
mov ecx, edi
call dword [eax + 8]
mov dword [ebp - 0x24b4], eax
test eax, eax
je 0x10005899
push eax
call fcn.10131c42
mov esi, eax
add esp, 4
test esi, esi
je 0x10005899
mov eax, dword [edi]
lea ecx, [ebp - 0x24b4]
push ecx
push esi
mov ecx, edi
call dword [eax + 8]
mov ecx, dword [ebx + 0x10]
push dword [ebx + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x64]
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebp + 0xc]
push edi
mov eax, dword [ecx]
call dword [eax + 0xa4]
push 0x800
lea eax, [ebp - 0x2010]
push 0
push eax
call fcn.1012bf20
mov ecx, dword [ebx + 0x10]
add esp, 0xc
push dword [ebp - 0x24a8]
mov eax, dword [ecx]
push edi
call dword [eax + 0xb0]
push eax
push str._s_tmp__08u__s.chk
lea eax, [ebp - 0x2010]
push 0x800
push eax
call fcn.1000dbe0
push 0x40
lea eax, [ebp - 0x2010]
push str.wbc
push eax
call fcn.101399dc
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x100058b9
push esi
call fcn.10131c3d
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret 0x14
push edi
push dword [ebp - 0x24b4]
mov byte [ebp - 0x24a1], 1
push 1
push esi
call fcn.10139c36
neg eax
push edi
sbb al, al
and al, byte [ebp - 0x24a1]
mov dword [ebp - 0x24a8], eax
call fcn.10139d04
push esi
call fcn.10131c3d
mov eax, dword [ebp - 0x24a8]
add esp, 0x18
test al, al
je 0x1000589b
cmp byte [ebp + 0x18], 0
je 0x1000589b
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.1012bf20
mov ecx, dword [ebx + 0x10]
add esp, 0xc
mov eax, dword [ecx]
push dword [ebx + 0x1ac]
call dword [eax + 0xb0]
push eax
push str._s_08u_.chk
lea eax, [ebp - 0x1010]
push 0x800
push eax
call fcn.1000dbe0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.1012bf20
mov ecx, dword [ebx + 0x10]
add esp, 0x20
mov eax, dword [ecx]
push dword [ebp + 0xc]
call dword [eax + 0xb0]
push eax
push str._s_tmp__08u_.chk
lea eax, [ebp - 0x810]
push 0x800
push eax
call fcn.1000dbe0
add esp, 0x14
mov dword [ebp - 0x24b0], 0
mov dword [ebp - 0x24ac], 0
call fcn.1000a890
mov dword [ebp - 0x24b0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2030], 0
mov dword [ebp - 0x202c], 7
mov word [ebp - 0x2040], ax
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x2014], 7
mov word [ebp - 0x2028], ax
push 0x228
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x2270], eax
lea eax, [ebp - 0x2268]
push eax
call fcn.1012bf20
push 0x800
lea eax, [ebp - 0x1810]
push 0
push eax
call fcn.1012bf20
lea eax, [ebp - 0x2270]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.1013a070
mov esi, eax
add esp, 0x20
cmp esi, 0xffffffff
je 0x10005b24
mov edi, dword [ebp - 0x24a8]
nop word [eax + eax]
test byte [ebp - 0x2270], 0x10
jne 0x10005b03
lea eax, [ebp - 0x224c]
push str._tmp_
push eax
call fcn.1012b326
add esp, 8
test eax, eax
je 0x10005b03
mov ecx, dword [ebx + 0x10]
add eax, 0xa
push eax
mov eax, dword [ecx]
call dword [eax + 0xb0]
push eax
push str._s_s
lea eax, [ebp - 0x810]
push 0x800
push eax
call fcn.1000dbe0
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x224c]
add esp, 0x14
push eax
mov eax, dword [ecx]
call dword [eax + 0xb0]
push eax
push str._s_s
lea eax, [ebp - 0x1810]
push 0x800
push eax
call fcn.1000dbe0
add esp, 0x14
lea eax, [ebp - 0x1810]
lea ecx, [ebp - 0x2040]
push eax
call fcn.10003b60
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x2028]
call fcn.10003b60
push edi
lea eax, [ebp - 0x2040]
push eax
push ecx
lea eax, [ebp - 0x24bc]
push eax
lea ecx, [ebp - 0x24b0]
call fcn.1000b4b0
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1810]
push eax
call fcn.1013a086
add esp, 8
lea eax, [ebp - 0x2270]
push eax
push esi
call fcn.1013a07b
add esp, 8
test eax, eax
je 0x10005a30
push esi
call fcn.1013a04a
add esp, 4
mov eax, dword [ebp - 0x24b0]
mov esi, dword [eax]
cmp esi, eax
je 0x10005be4
lea edi, [esi + 0x10]
lea eax, [ebp - 0x2040]
cmp eax, edi
je 0x10005b4d
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.100041a0
add edi, 0x18
lea eax, [ebp - 0x2028]
cmp eax, edi
je 0x10005b66
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.100041a0
cmp dword [ebp - 0x2014], 8
lea ecx, [ebp - 0x2028]
lea eax, [ebp - 0x2040]
cmovae ecx, dword [ebp - 0x2028]
cmp dword [ebp - 0x202c], 8
push ecx
cmovae eax, dword [ebp - 0x2040]
push eax
call fcn.1013a086
add esp, 8
cmp byte [esi + 0xd], 0
jne 0x10005bd8
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10005bbd
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10005bd8
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10005bb1
jmp 0x10005bd8
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10005bd6
cmp esi, dword [eax + 8]
jne 0x10005bd6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10005bc6
mov esi, eax
cmp esi, dword [ebp - 0x24b0]
jne 0x10005b34
call sym.AdDLM.dll_public:_static_class_DownloadRequestLog____cdecl_DownloadRequestLog::getInstance_void_
mov esi, dword [ebp + 0xc]
mov ecx, eax
push esi
push dword [ebx + 0x1c]
mov edx, dword [eax]
push dword [ebx + 0x10]
call dword [edx + 0x24]
push 0x228
lea eax, [ebp - 0x2498]
mov dword [ebx + 0x1ac], esi
push 0
push eax
mov dword [ebx + 0x1a8], 0
mov dword [ebp - 0x24a0], 0
call fcn.1012bf20
lea eax, [ebp - 0x24a0]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.1013a070
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x10005ca2
test byte [ebp - 0x24a0], 0x10
jne 0x10005c85
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x247c]
push eax
mov eax, dword [ecx]
call dword [eax + 0xb0]
push eax
push str._s_s
lea eax, [ebp - 0x1010]
push 0x800
push eax
call fcn.1000dbe0
lea eax, [ebp - 0x1010]
push eax
call fcn.1013a0b3
add esp, 0x18
lea eax, [ebp - 0x24a0]
push eax
push esi
call fcn.1013a07b
add esp, 8
test eax, eax
je 0x10005c44
push esi
call fcn.1013a04a
add esp, 4
lea ecx, [ebp - 0x2040]
call fcn.10005d20
mov eax, dword [ebp - 0x24b0]
lea ecx, [ebp - 0x24b0]
push eax
push dword [eax]
lea eax, [ebp - 0x24b8]
push eax
call fcn.10008d40
push dword [ebp - 0x24b0]
call fcn.1010f663
mov eax, dword [ebp - 0x24a8]
add esp, 4
jmp 0x1000589b