Function at 0x100f5a40
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10193766
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x101f62b4]
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 esi, ecx
mov edi, dword [ebp + 8]
lea ebx, [esi + 0xf8]
push ebx
lea ecx, [ebp - 0x4c]
call fcn.10002700
mov dword [ebp - 4], 0
mov ecx, 0x110
cmp dword [esi + 0x33c], 5
mov eax, 0x128
cmovne eax, ecx
add eax, esi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100f5aa9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10001e70
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10002700
mov byte [ebp - 4], 1
lea eax, [esi + 0x128]
cmp dword [edi + 0x10], 0
cmove edi, eax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100f5ad9
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.10001e70
cmp dword [ebp - 0x18], 8
lea edi, [ebp - 0x2c]
cmovae edi, dword [ebp - 0x2c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100f5ddb
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100f5b11
cmp byte [0x101fc262], al
jne 0x100f5b1c
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push edi
push str.File_does_not_exist_at__s
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
push 0xb8
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.10160450
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.100f6e10
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov eax, dword [ebp - 0x12c]
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
mov word [ebp - 0x134], 1
mov eax, dword [eax + 4]
push dword [ebp - 0x134]
mov byte [ebp - 0x2f], 0
push 0
mov eax, dword [ebp + eax - 0xf4]
test eax, eax
sete byte [ebp - 0x30]
push dword [ebp - 0x30]
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.100f7e10
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
cmp ecx, eax
je 0x100f5bf8
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x150]
call fcn.10018930
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x150]
call fcn.1010f9c0
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 4
mov bl, al
call fcn.1000ad20
mov ecx, dword [0x101fc26c]
test bl, bl
je 0x100f5c59
test ecx, ecx
je 0x100f5c32
cmp byte [0x101fc262], 0
jne 0x100f5c3d
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.successfully_unzipped_the_gzip_response
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 8
mov bl, 1
jmp 0x100f5c90
test ecx, ecx
je 0x100f5c66
cmp byte [0x101fc262], 0
jne 0x100f5c71
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.Failed_in_Unzipping_the_gzipped_http_response
push 0x101ace0c
push ecx
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
xor bl, bl
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x12d], bl
call fcn.100f5f60
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 2
call fcn.100f5ed0
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x134]
cmovae ecx, dword [ebp - 0x4c]
call fcn.100e22a0
test bl, bl
je 0x100f5dd1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x134], ecx
cmp ecx, 0xffffffff
jne 0x100f5d5d
mov ebx, dword [0x101fc26c]
test ebx, ebx
je 0x100f5d0f
cmp byte [0x101fc262], 0
jne 0x100f5d1a
call fcn.100e0c40
mov ebx, dword [0x101fc26c]
cmp dword [ebp - 0x18], 8
lea edi, [ebp - 0x2c]
mov esi, dword [ebx]
cmovae edi, dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push edi
push str.Failed_to_create_file_at_path_:_s_Error:_d
push 0x101ace0c
push ebx
call dword [0x1019a4f8]
call esi
mov bl, byte [ebp - 0x12d]
lea ecx, [ebp - 0x70]
add esp, 0x14
call fcn.1000ad20
jmp 0x100f5e20
cmp dword [ebp - 0x5c], 0x10
lea edx, [ebp - 0x30]
push 0
push edx
push dword [ebp - 0x60]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x70]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100f5dc5
mov edi, dword [0x101fc26c]
test edi, edi
je 0x100f5d96
cmp byte [0x101fc262], al
jne 0x100f5da1
call fcn.100e0c40
mov edi, dword [0x101fc26c]
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push str.Failed_to_write_in_file_ERROR_VAL:_d_n
push 0x101ace0c
push edi
call dword [0x1019a4f8]
call esi
add esp, 0x10
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x70]
call fcn.1000ad20
jmp 0x100f5e20
push 0x50
push str.Failed_to_unzip_the_file_as_there_is_already_another_file_with_that_name_present
lea ecx, [esi + 0x348]
mov dword [esi + 0x340], 0xffffff9c
call fcn.10001d60
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x134]
mov dword [esi + 0x368], 0
cmovae ecx, dword [ebp - 0x4c]
mov byte [esi + 0x364], 1
call fcn.100e22a0
xor bl, bl
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x100f5e56
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100f5e4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100f5ec0
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x100f5ea0
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100f5e96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100f5ec0
push edx
push ecx
call fcn.1015cbd5
add esp, 8
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.1015c875
mov esp, ebp
pop ebp
ret 4
call fcn.101686f5
int3