Function at 0x40cf24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43a440
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x44b4b8]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
mov eax, dword [0x44b4b8]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea ecx, [esi + 0x4c]
push ebx
mov edx, 0x442aa4
call fcn.004146be
pop ecx
lea eax, [esp + 0x18]
push eax
call fcn.0040f16b
lea ecx, [esi + 0x28]
mov dword [esp + 0x198], ebx
push eax
call fcn.00411378
lea ecx, [esp + 0x18]
call fcn.0041115a
mov eax, dword [0x44c5d0]
lea ecx, [esp + 0x60]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x34], vtable.CrashReportDlg.0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
call fcn.0040d55a
mov eax, dword [0x44c5d0]
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0x198], 1
lea edi, [esi + 0x30]
push edi
push dword [esi + 0x14]
lea ecx, [esp + 0x3c]
push dword [esi + 0x4c]
push dword [esi + 0x10]
call fcn.00411523
cmp byte [esi + 0x46], bl
jne 0x40d08a
call dword [sym.imp.USER32.dll_GetActiveWindow]
push ebx
push ebx
lea ecx, [esp + 0x44]
mov edi, eax
call fcn.0041092a
test eax, eax
jne 0x40d045
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x40d06c
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004108d3
push ebx
push 0x40f4c5
push edi
push 0x3e8
push dword [0x44d544]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
sete al
mov byte [esi + 0x45], al
test al, al
je 0x40d087
cmp byte [esi + 0x44], 0
je 0x40d479
mov byte [esi + 0x46], 1
lea edi, [esi + 0x30]
cmp byte [esp + 0xd8], 0
jne 0x40d09b
mov ecx, edi
call fcn.0040f465
lea eax, [esp + 0x2c]
push eax
call fcn.0041f667
pop ecx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xe4]
push eax
call fcn.0041f3ed
lea eax, [esp + 0xe8]
push eax
push str._Y__m__d__H:_M:_S
lea eax, [esp + 0x114]
push 0x40
push eax
call fcn.00420424
mov eax, dword [0x44c5d0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x1b0], 3
lea eax, [esp + 0x38]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push str._s_s_s
push eax
call fcn.00410fe2
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x44]
add esp, 0x2c
mov dword [esp + 0x18], ebx
mov edx, str.CrashCount
mov dword [esp + 0x14], ebx
push eax
call fcn.004149a7
pop ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
mov edx, str.TotalUptime
call fcn.004149a7
mov eax, dword [0x44c5d0]
pop ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov byte [esp + 0x198], 5
lea eax, [esp + 0x24]
push dword [esp + 0x14]
mov edi, 0x443964
push edi
push eax
call fcn.00410fe2
add esp, 0xc
lea eax, [esp + 0x28]
push dword [esp + 0x18]
push edi
push eax
call fcn.00410fe2
add esp, 0xc
lea ecx, [esp + 0x10]
push str.__xml_version_1.0__encoding_utf_8___
call fcn.00409cae
push str._BugReport__BsSndRptVersion_
lea ecx, [esp + 0x14]
call fcn.00410c94
push 0x442ba4
lea ecx, [esp + 0x1c]
call fcn.0041110a
mov byte [esp + 0x198], 6
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], 0
je 0x40d1bb
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
lea ecx, [esp + 0x18]
mov byte [esp + 0x198], 5
call fcn.0041115a
push 0x442ba8
lea ecx, [esp + 0x14]
call fcn.00410c94
mov eax, dword [esi + 4]
cmp dword [eax - 8], 0
je 0x40d1f0
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str.__Vendor__AppName_
lea ecx, [esp + 0x14]
call fcn.00410c94
mov eax, dword [esi + 8]
cmp dword [eax - 8], 0
je 0x40d214
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str.__AppName__Version_
lea ecx, [esp + 0x14]
call fcn.00410c94
mov eax, dword [esi + 0xc]
cmp dword [eax - 8], 0
je 0x40d238
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str.__Version__Description_
lea ecx, [esp + 0x14]
call fcn.00410c94
push str.___CDATA_
lea ecx, [esp + 0x14]
call fcn.00410c94
mov eax, dword [esi + 0x18]
cmp dword [eax - 8], 0
je 0x40d26a
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str._____Description___AppInfo__ReportOccurence__User__Name____CDATA_
lea ecx, [esp + 0x14]
call fcn.00410c94
mov eax, dword [0x44c5d0]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x54]
mov byte [esp + 0x198], 7
push eax
lea ecx, [esp + 0x18]
call fcn.00411378
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40d2a6
push eax
push ecx
jmp 0x40d2b3
mov eax, dword [esi + 0x1c]
cmp dword [eax - 8], 0
je 0x40d2bc
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str._____Name__Email____CDATA_
lea ecx, [esp + 0x14]
call fcn.00410c94
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
call fcn.00411378
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40d2e7
push eax
push ecx
jmp 0x40d2f4
mov eax, dword [esi + 0x20]
cmp dword [eax - 8], 0
je 0x40d2fd
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str._____Email__IPAddress____CDATA_
lea ecx, [esp + 0x14]
call fcn.00410c94
mov eax, dword [esi + 0x28]
cmp dword [eax - 8], 0
je 0x40d321
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str._____IPAddress___User__DateTime_
lea ecx, [esp + 0x14]
call fcn.00410c94
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x14]
call fcn.00410c94
push str.__DateTime__Description____CDATA_
lea ecx, [esp + 0x14]
call fcn.00410c94
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x18]
call fcn.00411378
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40d36b
push eax
push ecx
jmp 0x40d378
mov eax, dword [esi + 0x24]
cmp dword [eax - 8], 0
je 0x40d381
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str._____Description__MFA_
lea ecx, [esp + 0x14]
call fcn.00410c94
mov eax, dword [esi + 0x2c]
cmp dword [eax - 8], 0
je 0x40d3a5
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str.__MFA__TotalAppUptime_
lea ecx, [esp + 0x14]
call fcn.00410c94
mov eax, dword [esp + 0x24]
cmp dword [eax - 8], 0
je 0x40d3ca
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str.__TotalAppUptime__TotalCrashCount_
lea ecx, [esp + 0x14]
call fcn.00410c94
mov eax, dword [esp + 0x28]
cmp dword [eax - 8], 0
je 0x40d3ef
push eax
push dword [eax - 8]
lea ecx, [esp + 0x18]
call fcn.00410c2e
push str.__TotalCrashCount___ReportOccurence_
lea ecx, [esp + 0x14]
call fcn.00410c94
push str.__BugReport_
lea ecx, [esp + 0x14]
call fcn.00410c94
push str.w__ccsUNICODE
push dword [esi + 0x4c]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
call fcn.0041f6b8
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x40d44c
push dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push 2
push dword [eax - 8]
push eax
call fcn.00420624
push dword [esp + 0x2c]
call fcn.0041f833
add esp, 0x14
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.0041115a
lea ecx, [esp + 0x28]
call fcn.0041115a
lea ecx, [esp + 0x24]
call fcn.0041115a
lea ecx, [esp + 0x20]
call fcn.0041115a
lea ecx, [esp + 0x10]
call fcn.0041115a
or dword [esp + 0x198], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0040d4b0
mov al, bl
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0041d4e3
mov esp, ebp
pop ebp
ret