Function at 0x40e971
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0xfc
lea ebp, [esp - 4]
mov eax, dword [0x61f060]
xor eax, ebp
mov dword [ebp + 0xfc], eax
push 0x64
mov eax, 0x576eb0
call fcn.0048905d
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
push ebx
lea ecx, [ebp + 0x8c]
mov dword [ebp - 4], ebx
mov dword [ebp + 0xa4], 7
call fcn.00401848
lea eax, [ebp + 0x8c]
push eax
mov byte [ebp - 4], 1
call fcn.0041dfd9
cmp al, bl
pop ecx
mov byte [ebp - 0xd], al
je 0x40ef85
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0xa8]
push eax
call fcn.0041ab0d
pop ecx
pop ecx
push str.payloads
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 2
call fcn.00404d33
lea eax, [ebp + 0xc4]
push eax
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 3
call fcn.0041a507
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 2
call fcn.004031b4
lea eax, [ebp + 0xc4]
push eax
lea ecx, [ebp + 0xa8]
call fcn.004197da
mov dword [ebp - 0x14], eax
push str.Optimizing_media_in_directory:
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.00404d33
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00403eb5
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push eax
push 4
call dword [edx + 4]
push ebx
push esi
lea ecx, [ebp - 0x34]
call fcn.004031b4
push ebx
push esi
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 2
call fcn.004031b4
push 0x5afc1c
lea ecx, [ebp]
call fcn.00404d55
lea eax, [ebp - 0x34]
push 0x624898
push eax
mov byte [ebp - 4], 6
call fcn.004190eb
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 7
call fcn.0040414a
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0040321f
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0xa8]
call fcn.00419938
push esi
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp]
push ecx
push eax
mov byte [ebp - 4], 8
call fcn.00420e8e
add esp, 0x10
push ebx
push esi
lea ecx, [ebp - 0x34]
call fcn.0040321f
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push 0x5afc1c
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 9
call fcn.00404d55
lea eax, [ebp - 0x34]
push 0x62487c
push eax
mov byte [ebp - 4], 0xa
call fcn.004190eb
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0xb
call fcn.0040414a
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
call fcn.0040321f
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0xa8]
call fcn.00419938
push esi
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp + 0x38]
push ecx
push eax
mov byte [ebp - 4], 0xc
call fcn.00420e8e
add esp, 0x10
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
call fcn.0040321f
lea ecx, [ebp - 0x44]
call fcn.00419213
test eax, eax
je 0x40eef7
lea eax, [ebp + 0xa8]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00419926
push 0x5afc10
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xd
call fcn.00404d33
lea eax, [ebp + 0xe0]
push eax
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0xe
call fcn.0041a507
push ebx
push esi
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0xd
call fcn.004031b4
lea eax, [ebp + 0xa8]
push eax
call fcn.00419950
test al, al
pop ecx
je 0x40ec09
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0xa8]
call fcn.00419938
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.0040d912
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.0040321f
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0x54]
push eax
call fcn.0041ab0d
pop ecx
pop ecx
push 0x5afc04
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x10
call fcn.00404d33
lea eax, [ebp + 0xe0]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0x11
call fcn.0041a507
push ebx
push esi
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x10
call fcn.004031b4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0x54]
call fcn.00419938
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x12
call fcn.0040d912
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x10
call fcn.0040321f
lea ecx, [ebp + 0xc4]
call fcn.0041aa53
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0x13
call fcn.0041ab0d
pop ecx
pop ecx
lea ecx, [ebp + 0xc4]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x14
call fcn.0040d3dd
lea ecx, [ebp - 0x34]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0x13
call fcn.004197d0
cmp byte [ebp - 0xd], bl
je 0x40eea6
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0xe0]
push eax
call fcn.0041ab0d
pop ecx
pop ecx
push 0x6246a0
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x15
call fcn.0041a2a2
lea eax, [ebp + 0xc4]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0xe0]
push eax
mov ecx, edi
call fcn.0040dbe8
lea ecx, [ebp + 0xe0]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0x13
call fcn.004197d0
cmp byte [ebp - 0xd], bl
je 0x40eea6
push ebx
lea ecx, [ebp + 0x70]
mov dword [ebp + 0x88], 0xf
call fcn.004017b6
lea eax, [ebp + 0x70]
push eax
lea eax, [edi + 0x10]
push eax
mov byte [ebp - 4], 0x16
call fcn.00425f5f
cmp al, bl
pop ecx
pop ecx
mov byte [ebp - 0xd], al
je 0x40eea1
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp + 0xe0]
push eax
call fcn.0041ab0d
pop ecx
pop ecx
push 0x624bfc
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x17
call fcn.0041a2a2
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp + 0xe0]
call fcn.004197da
mov dword [ebp - 0x14], eax
push str.Creating_cache_file:
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x18
call fcn.00404d33
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x14]
mov ecx, eax
mov byte [ebp - 4], 0x19
call fcn.00403eb5
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
push eax
push 4
call dword [edx + 4]
push ebx
push esi
lea ecx, [ebp - 0x34]
call fcn.004031b4
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x17
call fcn.004031b4
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp + 0xe0]
call fcn.00419938
cmp dword [eax + 0x18], 8
jb 0x40edfa
mov eax, dword [eax + 4]
jmp 0x40edfd
add eax, 4
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x18], eax
call fcn.0040321f
cmp dword [ebp - 0x18], 0xffffffff
je 0x40ee6a
cmp dword [ebp + 0x88], 0x10
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x14], ebx
jae 0x40ee34
lea eax, [ebp + 0x74]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0x84]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x84]
cmp eax, dword [ebp - 0x14]
sete byte [ebp - 0xd]
jmp 0x40ee92
push str.Unable_to_create_file
lea ecx, [ebp - 0x34]
call fcn.00404d33
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x34]
push edx
push esi
mov byte [ebp - 4], 0x1a
call dword [eax + 4]
push ebx
push esi
lea ecx, [ebp - 0x34]
call fcn.004031b4
lea ecx, [ebp + 0xe0]
mov byte [ebp - 4], 0x16
call fcn.004197d0
lea ecx, [ebp + 0x70]
jmp 0x40eec7
push str.Failed_to_save_cached_property_values
lea ecx, [ebp - 0x34]
call fcn.00404d33
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x34]
push edx
push esi
mov byte [ebp - 4], 0x1b
call dword [eax + 4]
lea ecx, [ebp - 0x34]
push ebx
push esi
call fcn.004031b4
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 0x10
call fcn.004197d0
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xd
call fcn.004197d0
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xa
call fcn.004197d0
jmp 0x40ef58
push str.Unable_to_find_any_proxy_files_at_location:
lea ecx, [ebp + 0xc4]
call fcn.00404d33
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 0x1c
call fcn.004197da
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 0x1d
call fcn.00403eb5
push ebx
push esi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0x1c
call fcn.004031b4
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp + 0xc4]
push edx
push esi
call dword [eax + 4]
push ebx
push esi
lea ecx, [ebp + 0xc4]
call fcn.004031b4
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.0040321f
lea ecx, [ebp - 0x54]
call fcn.00438e60
push ebx
push esi
lea ecx, [ebp]
call fcn.0040321f
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 1
call fcn.004197d0
jmp 0x40ef88
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [ebp + 0x8c]
call fcn.0040321f
lea ecx, [ebp - 0x44]
call fcn.00438e60
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xfc]
xor ecx, ebp
call fcn.00488a42
add ebp, 0x100
leave
ret