Function at 0x4183a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x41d4
call fcn.0048c180
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x40b0], eax
xor ebx, ebx
mov dword [ebp - 0x4088], esi
push edi
mov dword [ebp - 0x40a0], ebx
mov eax, dword [esi]
test eax, eax
jne 0x4183e1
push 6
pop eax
jmp 0x4189bd
mov dword [ebp - 0x40c4], eax
lea eax, [ebp - 0x4070]
push ebx
push eax
mov dword [ebp - 0x40cc], 0x4182ae
mov dword [ebp - 0x40c8], 0x41822e
call fcn.00473670
pop ecx
lea eax, [ebp - 0x40cc]
mov dword [ebp - 0x4094], 0x470cf0
pop ecx
mov dword [ebp - 0x4060], eax
mov dword [ebp - 0x4090], 0x4b41d0
mov dword [ebp - 0x40bc], 0x470cf0
mov dword [ebp - 0x40b8], 0x4b41d0
call fcn.00473800
lea eax, [ebp - 0x4120]
push eax
call fcn.00471190
lea eax, [ebp - 0x40bc]
push eax
lea eax, [ebp - 0x4094]
push eax
lea eax, [ebp - 0x4070]
push eax
lea eax, [ebp - 0x4120]
push eax
call fcn.00471200
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4184ce
call fcn.00438e90
cmp eax, 2
jg 0x4184b5
push 2
push 0x9c
xor ebx, ebx
lea ecx, [ebp - 0x41d0]
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktoplauncherinstallerpackage_fetcherlzma_util.cc
inc ebx
call fcn.00438400
push edi
add eax, 8
push str.Error_returned_by_SzArchiveOpen:
push eax
call fcn.00438950
pop ecx
pop ecx
mov ecx, eax
call fcn.004121ba
test bl, 1
je 0x4183d9
lea ecx, [ebp - 0x41d0]
call fcn.00438510
jmp 0x4183d9
or dword [ebp - 0x40ac], 0xffffffff
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x408c], ebx
mov dword [ebp - 0x40c0], ebx
test ecx, ecx
je 0x4184f3
mov eax, dword [ecx]
push dword [ebp - 0x4104]
call dword [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x4084], ecx
cmp dword [ebp - 0x4104], ecx
jbe 0x418992
mov edi, ebx
push 2
mov dword [ebp - 0x4098], edi
pop esi
mov eax, dword [ebp - 0x4088]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x41852d
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x4084]
mov eax, dword [ebp - 0x4110]
add eax, edi
mov dword [ebp - 0x40a4], eax
lea eax, [ebp - 0x40bc]
push eax
lea eax, [ebp - 0x4094]
push eax
lea eax, [ebp - 0x409c]
push eax
lea eax, [ebp - 0x40b4]
push eax
lea eax, [ebp - 0x40c0]
push eax
lea eax, [ebp - 0x408c]
push eax
lea eax, [ebp - 0x40ac]
push eax
push ecx
lea eax, [ebp - 0x4070]
push eax
lea eax, [ebp - 0x4120]
push eax
call fcn.00470d10
mov edi, eax
add esp, 0x28
mov dword [ebp - 0x40a0], edi
test edi, edi
jne 0x418946
mov edi, dword [ebp - 0x4084]
lea eax, [ebp - 0x4120]
push ebx
push edi
push eax
call fcn.00471140
add esp, 0xc
cmp eax, 1
jb 0x41890f
push eax
lea ecx, [ebp - 0x407c]
call fcn.00418aae
push dword [ebp - 0x407c]
lea eax, [ebp - 0x4120]
push edi
push eax
call fcn.00471140
mov esi, dword [ebp - 0x4078]
lea ecx, [ebp - 0x34]
mov edi, dword [ebp - 0x407c]
add esi, 0xfffffffe
mov dword [ebp - 0x24], ebx
xor eax, eax
mov ebx, esi
mov word [ebp - 0x34], ax
add esp, 0xc
mov dword [ebp - 0x20], 7
sub ebx, edi
mov eax, ebx
sar eax, 1
push eax
call fcn.004150f6
and dword [ebp - 0x4080], 0
xor eax, eax
inc ebx
shr ebx, 1
cmp edi, esi
push 2
cmova ebx, eax
pop esi
test ebx, ebx
je 0x41863e
movzx eax, word [edi]
lea ecx, [ebp - 0x34]
push eax
push 1
call fcn.00418e0c
mov eax, dword [ebp - 0x4080]
add edi, esi
inc eax
mov dword [ebp - 0x4080], eax
cmp eax, ebx
jne 0x41861d
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x40b0]
lea ecx, [ebp - 0x4c]
call fcn.0043c0d0
mov ecx, eax
call fcn.0043c3e0
lea ecx, [ebp - 0x4c]
call fcn.0043c140
xor ebx, ebx
lea ecx, [ebp - 0x34]
push ebx
push 1
call fcn.00404402
mov eax, dword [ebp - 0x40a4]
cmp byte [eax + 0x19], bl
je 0x41868f
mov ecx, dword [ebp - 0x4088]
lea eax, [ebp - 0x1c]
push eax
call fcn.004189e5
jmp 0x418744
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043ca90
mov ecx, dword [ebp - 0x4088]
push eax
call fcn.004189e5
lea ecx, [ebp - 0x4c]
call fcn.0043c140
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push ebx
cmovae eax, dword [ebp - 0x1c]
push 0x80
push esi
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [ebp - 0x4080], edi
cmp edi, 0xffffffff
je 0x418898
push ebx
lea eax, [ebp - 0x40a8]
push eax
push dword [ebp - 0x409c]
mov eax, dword [ebp - 0x40b4]
add eax, dword [ebp - 0x408c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x418845
mov eax, dword [ebp - 0x40a8]
cmp eax, dword [ebp - 0x409c]
jne 0x418845
mov eax, dword [ebp - 0x40a4]
cmp byte [eax + 0x1c], bl
je 0x418735
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
test eax, eax
je 0x4187a5
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x4187fb
lea ecx, [ebp - 0x1c]
call fcn.0043c140
cmp dword [ebp - 0x407c], ebx
je 0x418772
push dword [ebp - 0x407c]
call fcn.004835e0
mov dword [ebp - 0x4074], ebx
mov dword [ebp - 0x4078], ebx
mov dword [ebp - 0x407c], ebx
pop ecx
mov ecx, dword [ebp - 0x4084]
mov edi, dword [ebp - 0x4098]
inc ecx
add edi, 0x20
mov dword [ebp - 0x4084], ecx
mov dword [ebp - 0x4098], edi
cmp ecx, dword [ebp - 0x4104]
jb 0x418512
mov edi, dword [ebp - 0x40a0]
jmp 0x418992
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x4080]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00438e90
cmp eax, esi
jg 0x4187f3
push 0x20
pop ebx
push esi
push 0xe5
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktoplauncherinstallerpackage_fetcherlzma_util.cc
lea ecx, [ebp - 0x41d0]
call fcn.00438400
push edi
add eax, 8
push str.Error_returned_by_SetFileTime:
push eax
call fcn.00438950
pop ecx
pop ecx
mov ecx, eax
call fcn.004121ba
test bl, 0x20
jmp 0x4188dc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call fcn.00438e90
cmp eax, esi
jg 0x41883d
push 0x40
pop ebx
push esi
push 0xeb
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktoplauncherinstallerpackage_fetcherlzma_util.cc
lea ecx, [ebp - 0x41d0]
call fcn.00438400
push edi
add eax, 8
push str.Error_returned_by_CloseHandle:
push eax
call fcn.00438950
pop ecx
pop ecx
mov ecx, eax
call fcn.004121ba
test bl, 0x40
jmp 0x4188dc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x4080]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00438e90
cmp eax, esi
jg 0x418893
push 0x10
pop ebx
push esi
push 0xdc
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktoplauncherinstallerpackage_fetcherlzma_util.cc
lea ecx, [ebp - 0x41d0]
call fcn.00438400
push edi
add eax, 8
push str.Error_returned_by_WriteFile:
push eax
call fcn.00438950
pop ecx
pop ecx
mov ecx, eax
call fcn.004121ba
test bl, 0x10
jmp 0x4188dc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call fcn.00438e90
cmp eax, esi
jg 0x4188d9
push 8
pop ebx
push esi
push 0xd3
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktoplauncherinstallerpackage_fetcherlzma_util.cc
lea ecx, [ebp - 0x41d0]
call fcn.00438400
push edi
add eax, ebx
push str.Error_returned_by_CreateFile:
push eax
call fcn.00438950
pop ecx
pop ecx
mov ecx, eax
call fcn.004121ba
test bl, 8
je 0x4188e9
lea ecx, [ebp - 0x41d0]
call fcn.00438510
lea ecx, [ebp - 0x1c]
call fcn.0043c140
cmp dword [ebp - 0x407c], 0
je 0x418992
push dword [ebp - 0x407c]
call fcn.004835e0
pop ecx
jmp 0x418992
call fcn.00438e90
cmp eax, esi
jg 0x418941
push 4
pop ebx
push esi
push 0xb9
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktoplauncherinstallerpackage_fetcherlzma_util.cc
lea ecx, [ebp - 0x41d0]
call fcn.00438400
add eax, 8
push str.Couldnt_get_file_name
push eax
call fcn.00438950
pop ecx
pop ecx
test bl, 4
jmp 0x418982
call fcn.00438e90
cmp eax, esi
jg 0x41897f
push esi
push 0xb2
push str.c:_buildbot_slaveworkdir_reposlar6desktop_2013_3desktoplauncherinstallerpackage_fetcherlzma_util.cc
lea ecx, [ebp - 0x41d0]
mov ebx, esi
call fcn.00438400
push edi
add eax, 8
push str.Error_returned_by_SzExtract:
push eax
call fcn.00438950
pop ecx
pop ecx
mov ecx, eax
call fcn.004121ba
test bl, 2
je 0x41898f
lea ecx, [ebp - 0x41d0]
call fcn.00438510
push 6
pop edi
push dword [ebp - 0x408c]
lea eax, [ebp - 0x4094]
push eax
call dword [ebp - 0x4090]
lea eax, [ebp - 0x4094]
push eax
lea eax, [ebp - 0x4120]
push eax
call fcn.004710e0
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486d53
mov esp, ebp
pop ebp
ret 8