Function at 0x4024e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x53bd24]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
test eax, eax
jne 0x402520
mov dword [esp + 0xc], 2
jmp 0x4026f1
mov eax, dword [esi + 0x60]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x5c], 0
je 0x4026b9
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x58]
mov ebx, dword [ecx]
test eax, eax
jne 0x4026ab
call fcn.004cf68f
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x402557
call fcn.004cf68f
mov eax, dword [ebx + 0xc]
mov ecx, dword [esi + 0x58]
mov edx, dword [ebx + 8]
mov ecx, dword [ecx]
mov edi, dword [ebx + 0x10]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], ecx
test eax, eax
jne 0x4026b2
call fcn.004cf68f
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, dword [eax + 0x14]
jne 0x402598
call fcn.004cf68f
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esi + 0x58]
je 0x4025b8
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov dword [edx], eax
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ecx
mov dword [edx + 4], eax
call fcn.004cf201
add esp, 4
dec dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x63
lea edx, [esp + 0x45]
push 0
push edx
mov byte [esp + 0x4c], 0
call fcn.004d1130
mov eax, dword [esp + 0x40]
add esp, 0xc
cdq
add eax, edi
adc edx, ebx
add eax, 0xffffffff
adc edx, 0xffffffff
push edx
push eax
push ebx
push edi
push str._llu__llu
lea eax, [esp + 0x54]
push 0x64
push eax
call fcn.004cf483
mov edx, dword [esp + 0x30]
add esp, 0x1c
lea ecx, [esp + 0x40]
push ecx
push 0x2717
push edx
call sym.EuDownload.exe_curl_easy_setopt
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x18]
push 0x2711
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
call sym.EuDownload.exe_curl_easy_setopt
add esp, 0xc
push edi
call sym.EuDownload.exe_curl_easy_perform
add esp, 4
test eax, eax
jne 0x4026c5
mov eax, dword [esp + 0x30]
mov ebx, dword [esi + 0x2c]
cdq
mov edi, eax
add edi, dword [esi + 0x28]
mov byte [esp + 0xb], 1
adc ebx, edx
add edi, 4
adc ebx, 0
cmp dword [esi + 0x38], 0
je 0x40269e
mov ecx, dword [esi + 0x3c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x38]
push 0
push ebx
push edi
push edx
call fcn.004d0344
mov eax, dword [esi + 0x38]
push eax
push 1
lea ecx, [esp + 0x23]
push 1
push ecx
call fcn.004cfb46
mov edx, dword [esi + 0x3c]
add esp, 0x20
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, byte [esi + 4]
test al, al
je 0x402520
jmp 0x4026f1
mov eax, dword [eax]
jmp 0x40254d
mov eax, dword [eax]
jmp 0x40258a
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4026f1
lea edx, [esp + 0x10]
push edx
push 0x200002
push edi
mov dword [esp + 0x1c], 0xffffffff
call sym.EuDownload.exe_curl_easy_getinfo
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0xc], 0xa
mov dword [0x541f9c], eax
mov cl, byte [esi + 4]
mov eax, 9
test cl, cl
jne 0x402701
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xac]
pop edi
pop ebx
xor ecx, esp
call fcn.004cf1f2
mov esp, ebp
pop ebp
ret 4