Function at 0x418410
Capabilities:
Send data

Disassembly:
push 0xffffffffffffffff
push 0x487940
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504a70]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x2c]
mov ebx, edx
mov eax, dword [esp + 0x38]
push eax
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push esi
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov edi, esp
push eax
mov dword [esp + 0x4c], eax
call fcn.00404c60
add esp, 4
lea edx, [esp + 0x3c]
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.00416340
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x41858c
call fcn.0045e8af
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4184b8
push 0x80004005
call fcn.00401440
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
mov byte [esp + 0x24], 2
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
call esi
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x4c]
push str.InternetWriteFile_fileheader_failed__field___s__error___d__0x_x__n
push edx
call fcn.00405230
mov edi, dword [esp + 0x54]
add esp, 0x14
push 0
push 0x10
push edi
call fcn.0045dce2
call esi
test eax, eax
jg 0x41850a
call esi
mov esi, eax
jmp 0x41851a
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov byte [esp + 0x24], 1
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41853b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418560
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418585
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x418811
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41863e
call fcn.0045e8af
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4185c7
push 0x80004005
call fcn.00401440
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x24], 3
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
call esi
push eax
lea ecx, [esp + 0x3c]
push str.CreateFile_failed__error___d__0x_x__n
push ecx
call fcn.00405230
mov edi, dword [esp + 0x44]
add esp, 0x10
push 0
push 0x10
push edi
call fcn.0045dce2
call esi
test eax, eax
jg 0x418614
call esi
mov esi, eax
jmp 0x418624
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41852f
mov ecx, dword [ebx]
test ecx, ecx
je 0x41864c
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push esi
call eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
push edi
push esi
push ebp
push ebx
call fcn.00418d10
test eax, eax
mov dword [esp + 0x40], eax
jge 0x4186d4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebx]
test ecx, ecx
je 0x418681
mov edx, dword [esp + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
push edx
push esi
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4186a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4186cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
jmp 0x418811
mov ebx, dword [ebx]
test ebx, ebx
je 0x4186e6
mov edx, dword [ebx]
mov eax, dword [edx + 0x30]
push 0
push esi
mov ecx, ebx
call eax
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea esi, [esp + 0x14]
call fcn.00416a90
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x4187a0
lea ecx, [esp + 0x40]
call fcn.00403dd0
mov byte [esp + 0x24], 5
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
push eax
call esi
push eax
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x4c]
push str.InternetWriteFile_fileTrailer_failed__field___s__error___d__0x_x__n
push ecx
call fcn.00405230
mov edi, dword [esp + 0x54]
add esp, 0x14
push 0
push 0x10
push edi
call fcn.0045dce2
call esi
test eax, eax
jg 0x41875e
call esi
mov esi, eax
jmp 0x41876e
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
lea eax, [edi - 0x10]
mov byte [esp + 0x24], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41878f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x418522
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4187c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4187ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41880f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18