Function at 0x4617e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a8e67
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x160], eax
mov byte [ebp - 0x15c], al
mov dword [ebp - 4], 1
cmp dword [ebp + 0x1c], 5
jb 0x461b43
push dword [ebp - 0x15c]
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.00461f20
mov ebx, eax
lea esi, [edi + 0x290]
cmp esi, ebx
je 0x46187b
cmp dword [esi + 0x14], 0x10
jb 0x461862
push dword [esi]
call fcn.0047e2e9
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.004371a0
cmp dword [ebp - 0x168], 0x10
jb 0x461892
push dword [ebp - 0x17c]
call fcn.0047e2e9
add esp, 4
call fcn.004d1d60
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp + 0xc]
mov dword [edi + 0x2cc], eax
cmovae ecx, dword [ebp + 0xc]
push ecx
push 0x2712
push eax
call fcn.004d20b0
add esp, 0xc
push dword [edi + 0x2c4]
push 0xd
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
push 0x461d00
push 0x4e2b
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
push edi
push 0x2711
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
push 0x80000
push 0x62
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
push 5
push 0x44
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
push 1
push 0x34
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
push 0
push 0x2b
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
push 0x461db0
push 0x4e58
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
push edi
push 0x2749
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
push 0
push 0x40
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
push 0
push 0x51
push dword [edi + 0x2cc]
call fcn.004d20b0
add esp, 0xc
cmp byte [ebp - 0x160], 0
je 0x461a06
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x168], 0xf
mov dword [ebp - 0x16c], 0
mov byte [ebp - 0x17c], 0
call fcn.004373c0
cmp dword [ebp - 0x168], 0x10
lea ecx, [ebp - 0x154]
lea eax, [ebp - 0x17c]
cmovae eax, dword [ebp - 0x17c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x461a10
cmp dword [ebp - 0x168], 0x10
jb 0x461a06
push dword [ebp - 0x17c]
call fcn.0047e2e9
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x461a8a
mov eax, dword [esi]
jmp 0x461a8c
mov eax, dword [ebp - 0x138]
xor ebx, ebx
or ebx, dword [ebp - 0x134]
cmp dword [ebp - 0x168], 0x10
mov dword [ebp - 0x15c], eax
jb 0x461a41
push dword [ebp - 0x17c]
call fcn.0047e2e9
mov eax, dword [ebp - 0x15c]
add esp, 4
test eax, eax
jl 0x461a06
jg 0x461a4b
test ebx, ebx
je 0x461a06
push eax
push ebx
push 0x75a4
push dword [edi + 0x2cc]
call fcn.004d20b0
mov eax, dword [ebp - 0x15c]
add esp, 0x10
mov dword [edi + 0x288], ebx
mov dword [edi + 0x28c], eax
cmp dword [esi + 0x14], 0x10
jb 0x461a81
mov eax, dword [esi]
push 0x600c84
jmp 0x461a91
mov eax, esi
push 0x600c84
jmp 0x461a91
mov eax, esi
push 0x600c80
push eax
lea ebx, [edi + 0x2d0]
push ebx
call fcn.004ca8cf
add esp, 0xc
cmp dword [ebx], 0
jne 0x461b99
push str.main
lea ecx, [ebp - 0x17c]
call fcn.00437ff0
lea edx, [ebp - 0x17c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x164]
call fcn.00465540
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 0x10
jb 0x461adb
mov esi, dword [esi]
push esi
push str.Curl_Cannot_open___s_
push dword [eax]
call fcn.00465770
mov byte [ebp - 4], 2
add esp, 0xc
mov esi, dword [ebp - 0x160]
test esi, esi
je 0x461b1e
or ebx, 0xffffffff
lea ecx, [esi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x461b1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x461b1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x168], 8
jb 0x461b35
push dword [ebp - 0x17c]
call fcn.0047e2e9
add esp, 4
push dword [edi + 0x2cc]
call fcn.004d1d20
add esp, 4
xor bl, bl
cmp dword [ebp + 0x20], 0x10
jb 0x461b56
push dword [ebp + 0xc]
call fcn.0047e2e9
add esp, 4
cmp dword [ebp + 0x38], 0x10
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
jb 0x461b79
push dword [ebp + 0x24]
call fcn.0047e2e9
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret 0x34
push ecx
lea ecx, [edi + 0x2d4]
call fcn.00440640
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [edi + 0x2cc]
mov dword [edi + 0x2c8], eax
call fcn.004d1f20
mov ecx, dword [edi + 0x2e0]
add esp, 4
mov dword [ebp - 0x160], eax
test ecx, ecx
je 0x461be2
push dword [ebx]
push ecx
push 1
push dword [edi + 0x2d4]
call fcn.00494416
add esp, 0x10
push dword [ebx]
call fcn.00494e58
add esp, 4
cmp dword [ebp - 0x160], 0
jne 0x461ce3
cmp dword [edi + 0x30], 0x10
lea ebx, [edi + 0x1c]
jb 0x461c06
mov eax, dword [ebx]
jmp 0x461c08
mov eax, ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x160], esp
push eax
call fcn.00437830
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 0x10
jb 0x461c27
mov eax, dword [esi]
jmp 0x461c29
mov eax, esi
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00437830
mov edx, 0x64
mov byte [ebp - 4], 1
mov ecx, 0x1388
call fcn.00447be0
add esp, 0x30
test al, al
je 0x461c63
push dword [edi + 0x2cc]
mov bl, 1
call fcn.004d1d20
add esp, 4
jmp 0x461b45
push str.main
lea ecx, [ebp - 0x17c]
mov byte [ebp - 0x155], 0
call fcn.00437ff0
lea edx, [ebp - 0x17c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x164]
call fcn.00465540
mov byte [ebp - 4], 6
cmp dword [ebx + 0x14], 0x10
jb 0x461c9b
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x461ca3
mov esi, dword [esi]
push ebx
push esi
push str.Curl_Error_rename_file__s_____s_
push dword [eax]
call fcn.00465770
add esp, 0x10
lea ecx, [ebp - 0x164]
call fcn.00449e30
lea ecx, [ebp - 0x17c]
call fcn.004379d0
push dword [edi + 0x2cc]
mov bl, byte [ebp - 0x155]
call fcn.004d1d20
add esp, 4
jmp 0x461b45
push dword [edi + 0x2cc]
xor bl, bl
call fcn.004d1d20
add esp, 4
jmp 0x461b45