Function at 0x402420
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40e67a
mov eax, dword fs:[0]
push eax
sub esp, 0x7f8
mov eax, dword [0x415284]
xor eax, esp
mov dword [esp + 0x7f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x415284]
xor eax, esp
push eax
lea eax, [esp + 0x80c]
mov dword fs:[0], eax
mov ebp, ecx
push 0x4106ee
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
xor esi, esi
push 0x4106ee
lea ecx, [esp + 0x20]
mov dword [esp + 0x818], esi
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0x4106ee
lea ecx, [esp + 0x24]
mov byte [esp + 0x818], 1
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0x4106ee
lea ecx, [esp + 0x28]
mov byte [esp + 0x818], 2
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0x4106ee
lea ecx, [esp + 0x1c]
mov byte [esp + 0x818], 3
call dword [sym.imp.MFC80.DLL_Ordinal_304]
lea eax, [ebp + 0x34c]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x818], 4
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push str.TMWCrashReport.ini
lea ecx, [esp + 0x2c]
mov byte [esp + 0x818], 5
call dword [sym.imp.MFC80.DLL_Ordinal_911]
mov edi, dword [sym.imp.MSVCR80.dll__mbstok]
mov dword [esp + 0x30], esi
mov ebx, 1
push 0x4106ee
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push 0x4106ee
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push 0x4106ee
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push 0x4106ee
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push ebx
lea eax, [esp + 0x30]
push str.File_03d
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
add esp, 0xc
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
push 0x7c6
lea ecx, [esp + 0x40]
push ecx
push 0x4106ee
lea ecx, [esp + 0x3c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
push str.FilesToAdd
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x38], 0
je 0x40270f
lea edx, [esp + 0x38]
push 0x410e70
push edx
call edi
add esp, 8
test eax, eax
je 0x40270f
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push 0x410e70
push 0
call edi
add esp, 8
test eax, eax
je 0x40270f
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push 0x410e70
push 0
call edi
add esp, 8
test eax, eax
je 0x40270f
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_3934]
test al, al
jne 0x402700
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_297]
push 0
push 0x5c
lea ecx, [esp + 0x24]
mov byte [esp + 0x81c], 6
call dword [sym.imp.MFC80.DLL_Ordinal_2271]
cmp eax, 0xffffffff
jne 0x402654
lea eax, [ebp + 0x34c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_907]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call fcn.004038c0
add esp, 8
test eax, eax
je 0x4026ee
push 0x14
call sub.MFC80.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov byte [esp + 0x814], 7
je 0x402695
mov ecx, eax
call fcn.00401ea0
mov esi, eax
jmp 0x402697
xor esi, esi
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0x818], 6
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 4]
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea edx, [esp + 0x24]
push edx
lea ecx, [esi + 0xc]
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 8]
call dword [sym.imp.MFC80.DLL_Ordinal_781]
mov eax, dword [ebp + 0x55c]
lea ecx, [ebp + 0x554]
push esi
push eax
call sub.MFC80.DLL_Ordinal_5712
add dword [esp + 0x30], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x814], 5
call dword [sym.imp.MFC80.DLL_Ordinal_578]
add ebx, 1
cmp ebx, 0x3e7
jle 0x402508
cmp dword [esp + 0x30], 0
jne 0x4028cf
lea eax, [ebp + 0x34c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
mov bl, 8
push str.ERRORLOG.TXT
lea ecx, [esp + 0x18]
mov byte [esp + 0x818], bl
call dword [sym.imp.MFC80.DLL_Ordinal_911]
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov edi, dword [sym.imp.MSVCR80.dll__access]
push eax
call edi
add esp, 8
test eax, eax
jne 0x4027f7
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call fcn.004038c0
add esp, 8
test eax, eax
je 0x4027f7
push 0x14
call sub.MFC80.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov byte [esp + 0x814], 9
je 0x4027a4
mov ecx, eax
call fcn.00401ea0
mov esi, eax
jmp 0x4027a6
xor esi, esi
lea edx, [esp + 0x14]
push edx
mov ecx, esi
mov byte [esp + 0x818], bl
call dword [sym.imp.MFC80.DLL_Ordinal_781]
push str.Crash_log
lea ecx, [esi + 4]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push str.Text_Document
lea ecx, [esi + 0xc]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 8]
call dword [sym.imp.MFC80.DLL_Ordinal_781]
mov eax, dword [ebp + 0x55c]
lea ecx, [ebp + 0x554]
push esi
push eax
call sub.MFC80.DLL_Ordinal_5712
lea eax, [ebp + 0x34c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push str.CRASH.DMP
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_911]
push 0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call edi
add esp, 8
test eax, eax
jne 0x4028c5
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call fcn.004038c0
add esp, 8
test eax, eax
je 0x4028c5
push 0x14
call sub.MFC80.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov byte [esp + 0x814], 0xa
je 0x402872
mov ecx, eax
call fcn.00401ea0
mov esi, eax
jmp 0x402874
xor esi, esi
lea edx, [esp + 0x14]
push edx
mov ecx, esi
mov byte [esp + 0x818], bl
call dword [sym.imp.MFC80.DLL_Ordinal_781]
push str.Crash_Dump
lea ecx, [esi + 4]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push str.DMP_File
lea ecx, [esi + 0xc]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 8]
call dword [sym.imp.MFC80.DLL_Ordinal_781]
mov edx, dword [ebp + 0x55c]
lea ecx, [ebp + 0x554]
push esi
push edx
call sub.MFC80.DLL_Ordinal_5712
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7f4]
xor ecx, esp
call fcn.0040d786
add esp, 0x804
ret