Function at 0x40cb47
Capabilities:
Write file on windows

Disassembly:
push 0x128
mov eax, 0x43acbb
call fcn.004249d4
mov edi, ecx
xor ebx, ebx
lea ecx, [edi + 0x60]
push ebx
mov edx, 0x443a18
call fcn.00414bd3
pop ecx
lea eax, [ebp - 0xc0]
push eax
call fcn.0040e5c0
lea ecx, [edi + 0x2c]
mov dword [ebp - 4], ebx
push eax
call fcn.00411e59
lea ecx, [ebp - 0xc0]
call fcn.004095d5
mov eax, dword [0x44d5d0]
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x12c], 0x444ab0
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 4], 1
lea esi, [edi + 0x34]
push dword [edi + 0x28]
lea ecx, [ebp - 0x12c]
push dword [edi + 0x20]
push dword [edi + 0x24]
push esi
push dword [edi + 0x18]
push dword [edi + 0x60]
push dword [edi + 0x14]
call fcn.00411fc9
cmp byte [edi + 0x5a], bl
jne 0x40cc8b
call dword [sym.imp.USER32.dll_GetActiveWindow]
push ebx
push ebx
lea ecx, [ebp - 0x124]
mov dword [ebp - 0xc0], eax
call fcn.00411782
test eax, eax
jne 0x40cc40
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x40cc70
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.0041172b
push ebx
push 0x40eb0c
push dword [ebp - 0xc0]
push 0x3e8
push dword [0x44e4e4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
sete al
mov byte [edi + 0x59], al
test al, al
je 0x40cc8b
cmp byte [edi + 0x58], 0
je 0x40d204
mov byte [edi + 0x5a], 1
cmp byte [ebp - 0xe4], 0
jne 0x40cc9b
mov ecx, esi
call fcn.0040e8ff
lea eax, [ebp - 0x134]
push eax
call fcn.0041fc27
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0041f9ad
lea eax, [ebp - 0xb4]
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.00422207
mov eax, dword [0x44d5d0]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0xc8]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
push str._s_s_s
push eax
call fcn.00411ce1
mov esi, dword [ebp - 0xc8]
lea eax, [ebp - 0xe0]
push eax
mov edx, str.LaunchCount
mov dword [ebp - 0xe0], ebx
mov ecx, esi
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xdc], ebx
call fcn.00414ebc
lea eax, [ebp - 0xc0]
mov edx, str.CrashCount
push eax
mov ecx, esi
call fcn.00414ebc
lea eax, [ebp - 0xdc]
mov edx, str.TotalUpTime
push eax
mov ecx, esi
call fcn.00414ebc
lea eax, [ebp - 0xbc]
mov edx, str.LaunchToLastCrashTime
push eax
mov ecx, esi
call fcn.00414ebc
mov eax, dword [0x44d5d0]
add esp, 0x40
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0xd8]
push dword [ebp - 0xbc]
mov esi, 0x444ac0
push esi
push eax
call fcn.00411ce1
push dword [ebp - 0xdc]
lea eax, [ebp - 0xd4]
push esi
push eax
call fcn.00411ce1
push dword [ebp - 0xe0]
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.00411ce1
push dword [ebp - 0xc0]
lea eax, [ebp - 0xd0]
push esi
push eax
call fcn.00411ce1
add esp, 0x30
lea ecx, [ebp - 0xb8]
push str.__xml_version_1.0__encoding_utf_8___
call fcn.00409668
push str._BugReport__BsSndRptVersion_
lea ecx, [ebp - 0xb8]
call fcn.00411993
push str.3.13
lea ecx, [ebp - 0xc0]
call fcn.00411e09
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xc0]
cmp dword [eax - 8], 0
je 0x40ce34
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 7
call fcn.004095d5
push str.__BsSndRptVersion__AppInfo__Vendor_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [edi + 4]
cmp dword [eax - 8], 0
je 0x40ce6b
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str.__Vendor__AppName_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [edi + 8]
cmp dword [eax - 8], 0
je 0x40ce93
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str.__AppName__Version_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [edi + 0xc]
cmp dword [eax - 8], 0
je 0x40cebb
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str.__Version__CrashType_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [edi + 0x10]
cmp dword [eax - 8], 0
je 0x40cee3
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str.__CrashType__Description_
lea ecx, [ebp - 0xb8]
call fcn.00411993
push str.___CDATA_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [edi + 0x1c]
cmp dword [eax - 8], 0
je 0x40cf1b
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str._____Description___AppInfo__ReportOccurence__User__Name____CDATA_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [0x44d5d0]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xbc]
call fcn.00411e59
mov eax, dword [ebp - 0xbc]
lea esi, [edi + 0x20]
cmp dword [eax - 8], 0
jle 0x40cf69
lea eax, [ebp - 0xbc]
mov ecx, esi
push eax
call fcn.00411e59
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x40cf80
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str._____Name__Email____CDATA_
lea ecx, [ebp - 0xb8]
call fcn.00411993
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00411e59
mov eax, dword [ebp - 0xbc]
lea esi, [edi + 0x24]
cmp dword [eax - 8], 0
jle 0x40cfbf
lea eax, [ebp - 0xbc]
mov ecx, esi
push eax
call fcn.00411e59
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x40cfd6
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str._____Email__IPAddress____CDATA_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [edi + 0x2c]
cmp dword [eax - 8], 0
je 0x40cffe
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str._____IPAddress___User__DateTime_
lea ecx, [ebp - 0xb8]
call fcn.00411993
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xb8]
call fcn.00411993
push str.__DateTime__Description____CDATA_
lea ecx, [ebp - 0xb8]
call fcn.00411993
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00411e59
mov eax, dword [ebp - 0xbc]
lea esi, [edi + 0x28]
cmp dword [eax - 8], 0
jle 0x40d05f
lea eax, [ebp - 0xbc]
mov ecx, esi
push eax
call fcn.00411e59
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x40d076
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str._____Description__MFA_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [edi + 0x30]
cmp dword [eax - 8], 0
je 0x40d09e
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str.__MFA__SessionUpTime_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [ebp - 0xd8]
cmp dword [eax - 8], 0
je 0x40d0c9
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str.__SessionUpTime__TotalUpTime_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [ebp - 0xd4]
cmp dword [eax - 8], 0
je 0x40d0f4
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str.__TotalUpTime__LaunchCount_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [ebp - 0xcc]
cmp dword [eax - 8], 0
je 0x40d11f
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str.__LaunchCount__TotalCrashCount_
lea ecx, [ebp - 0xb8]
call fcn.00411993
mov eax, dword [ebp - 0xd0]
cmp dword [eax - 8], 0
je 0x40d14a
push eax
push dword [eax - 8]
lea ecx, [ebp - 0xb8]
call fcn.0041192d
push str.__TotalCrashCount___ReportOccurence_
lea ecx, [ebp - 0xb8]
call fcn.00411993
push str.__BugReport_
lea ecx, [ebp - 0xb8]
call fcn.00411993
push str.w__ccsUNICODE
push dword [edi + 0x60]
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], ebx
push eax
call fcn.0042149b
add esp, 0xc
cmp dword [ebp - 0xc4], 0
je 0x40d1b7
push dword [ebp - 0xc4]
mov eax, dword [ebp - 0xb8]
push 2
push dword [eax - 8]
push eax
call fcn.004223ea
push dword [ebp - 0xc4]
call fcn.00421616
add esp, 0x14
mov bl, 1
lea ecx, [ebp - 0xbc]
call fcn.004095d5
lea ecx, [ebp - 0xd0]
call fcn.004095d5
lea ecx, [ebp - 0xcc]
call fcn.004095d5
lea ecx, [ebp - 0xd4]
call fcn.004095d5
lea ecx, [ebp - 0xd8]
call fcn.004095d5
lea ecx, [ebp - 0xc8]
call fcn.004095d5
lea ecx, [ebp - 0xb8]
call fcn.004095d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.0040d21b
mov al, bl
call fcn.00424983
ret