Function at 0x408f84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
mov dword [esp], eax
call fcn.00416612
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 0xf27e
mov dword [esp], eax
call fcn.004166b2
test ax, ax
je 0x409007
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x26
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_could_not_connect_to_lockdownd_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0041666b
mov eax, 0xffffffff
jmp 0x409226
call fcn.00421044
mov dword [ebp - 0x10], eax
mov dword [esp], 0x6555df
call fcn.004210ac
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6555e4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00421810
mov dword [esp], 0
call fcn.0042110c
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6555ec
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00421810
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00422a7c
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004212c0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x20]
mov edx, eax
shr edx, 0x18
mov eax, dword [ebp - 0x20]
and eax, 0xff0000
shr eax, 8
or edx, eax
mov eax, dword [ebp - 0x20]
and eax, 0xff00
shl eax, 8
or edx, eax
mov eax, dword [ebp - 0x20]
shl eax, 0x18
or eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 4
lea edx, [ebp - 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041677a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
lea ebx, [ebp - 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041677a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0059fbf8
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], 0x5dc
lea edx, [ebp - 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 4
lea edx, [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004168a8
mov eax, dword [ebp - 0x20]
mov edx, eax
shr edx, 0x18
mov eax, dword [ebp - 0x20]
and eax, 0xff0000
shr eax, 8
or edx, eax
mov eax, dword [ebp - 0x20]
and eax, 0xff00
shl eax, 8
or edx, eax
mov eax, dword [ebp - 0x20]
shl eax, 0x18
or eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4091d6
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], 0x1388
lea ebx, [ebp - 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004168a8
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0059fbf8
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4091d6
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00416f99
cmp dword [ebp - 0xc], 0
je 0x409221
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x21
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_could_not_stroke_lockdownd
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0041666b
mov eax, 0xffffffff
jmp 0x409226
mov eax, 0
add esp, 0x44
pop ebx
pop ebp
ret