Function at 0x402770
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x411ea7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x800
mov eax, dword [0x415040]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], eax
mov ecx, 0x4183cc
mov dword [esp + 0x30], edi
test ecx, ecx
je 0x4027f5
mov edx, ecx
shr edx, 0x10
jne 0x4027c5
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x28]
push eax
call fcn.004017f0
jmp 0x4027f5
push 0x4183cc
call ebp
mov esi, eax
test esi, esi
je 0x4027f5
push esi
lea ecx, [esp + 0x2c]
call fcn.00401a50
test eax, eax
je 0x4027f5
mov edx, dword [esp + 0x28]
push esi
inc esi
push 0x4183cc
push esi
push edx
call fcn.004019f0
add esp, 0x10
mov eax, dword [0x415040]
mov ecx, 0x4183cc
xor ebx, ebx
mov dword [esp + 0x1c], eax
test ecx, ecx
mov dword [esp + 0x818], ebx
je 0x402858
mov edx, ecx
shr edx, 0x10
jne 0x402828
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x1c]
push eax
call fcn.004017f0
jmp 0x402858
push 0x4183cc
call ebp
mov esi, eax
cmp esi, ebx
je 0x402858
push esi
lea ecx, [esp + 0x20]
call fcn.00401a50
test eax, eax
je 0x402858
mov edx, dword [esp + 0x1c]
push esi
inc esi
push 0x4183cc
push esi
push edx
call fcn.004019f0
add esp, 0x10
mov eax, dword [0x415040]
mov ecx, 0x4183cc
test ecx, ecx
mov byte [esp + 0x818], 1
mov dword [esp + 0x20], eax
je 0x4028ba
mov edx, ecx
shr edx, 0x10
jne 0x40288a
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x20]
push eax
call fcn.004017f0
jmp 0x4028ba
push 0x4183cc
call ebp
mov esi, eax
cmp esi, ebx
je 0x4028ba
push esi
lea ecx, [esp + 0x24]
call fcn.00401a50
test eax, eax
je 0x4028ba
mov edx, dword [esp + 0x20]
push esi
inc esi
push 0x4183cc
push esi
push edx
call fcn.004019f0
add esp, 0x10
mov eax, dword [0x415040]
mov ecx, 0x4183cc
test ecx, ecx
mov byte [esp + 0x818], 2
mov dword [esp + 0x24], eax
je 0x40291c
mov edx, ecx
shr edx, 0x10
jne 0x4028ec
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x24]
push eax
call fcn.004017f0
jmp 0x40291c
push 0x4183cc
call ebp
mov esi, eax
cmp esi, ebx
je 0x40291c
push esi
lea ecx, [esp + 0x28]
call fcn.00401a50
test eax, eax
je 0x40291c
mov edx, dword [esp + 0x24]
push esi
inc esi
push 0x4183cc
push esi
push edx
call fcn.004019f0
add esp, 0x10
mov eax, dword [0x415040]
mov ecx, 0x4183cc
test ecx, ecx
mov byte [esp + 0x818], 3
mov dword [esp + 0x18], eax
je 0x40297e
mov edx, ecx
shr edx, 0x10
jne 0x40294e
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x18]
push eax
call fcn.004017f0
jmp 0x40297e
push 0x4183cc
call ebp
mov esi, eax
cmp esi, ebx
je 0x40297e
push esi
lea ecx, [esp + 0x1c]
call fcn.00401a50
test eax, eax
je 0x40297e
mov edx, dword [esp + 0x18]
push esi
inc esi
push 0x4183cc
push esi
push edx
call fcn.004019f0
add esp, 0x10
mov eax, dword [0x415040]
lea esi, [edi + 8]
cmp esi, ebx
mov byte [esp + 0x818], 4
mov dword [esp + 0x2c], eax
je 0x4029d7
mov ecx, esi
shr ecx, 0x10
jne 0x4029af
and esi, 0xffff
lea ecx, [esp + 0x2c]
push esi
call fcn.004017f0
jmp 0x4029d7
push esi
call ebp
mov edi, eax
cmp edi, ebx
je 0x4029d7
push edi
lea ecx, [esp + 0x30]
call fcn.00401a50
test eax, eax
je 0x4029d7
mov edx, dword [esp + 0x2c]
push edi
inc edi
push esi
push edi
push edx
call fcn.004019f0
add esp, 0x10
mov eax, str.XCrashReport.ini
mov byte [esp + 0x818], 5
test eax, eax
je 0x4029ef
push str.XCrashReport.ini
call ebp
push str.XCrashReport.ini
push eax
lea ecx, [esp + 0x34]
call fcn.00401b70
mov edi, 1
mov dword [esp + 0x34], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x3c], edi
mov ecx, 0x4183cc
mov byte [esp + 0x40], 0
test ecx, ecx
jne 0x402a23
xor eax, eax
jmp 0x402a2a
push 0x4183cc
call ebp
push 0x4183cc
push eax
lea ecx, [esp + 0x24]
call fcn.00401ab0
mov edx, 0x4183cc
test edx, edx
jne 0x402a46
xor eax, eax
jmp 0x402a4d
push 0x4183cc
call ebp
push 0x4183cc
push eax
lea ecx, [esp + 0x28]
call fcn.00401ab0
mov eax, 0x4183cc
test eax, eax
je 0x402a6c
push 0x4183cc
call ebp
push 0x4183cc
push eax
lea ecx, [esp + 0x2c]
call fcn.00401ab0
mov ecx, 0x4183cc
test ecx, ecx
jne 0x402a88
xor eax, eax
jmp 0x402a8f
push 0x4183cc
call ebp
push 0x4183cc
push eax
lea ecx, [esp + 0x20]
call fcn.00401ab0
push edi
lea edx, [esp + 0x2c]
push str.File_03d
push edx
call fcn.004012b0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add esp, 0xc
lea ecx, [esp + 0x40]
push eax
push 0x7c6
push ecx
push 0x4183cc
push edx
push str.FilesToAdd
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x40]
test al, al
je 0x402d87
lea eax, [esp + 0x40]
push 0x4152c0
push eax
call fcn.00409e1d
add esp, 8
test eax, eax
je 0x402d87
push eax
push eax
call ebp
push eax
lea ecx, [esp + 0x24]
call fcn.00401ab0
push 0x4152c0
push 0
call fcn.00409e1d
add esp, 8
test eax, eax
je 0x402d87
push eax
push eax
call ebp
push eax
lea ecx, [esp + 0x28]
call fcn.00401ab0
push 0x4152c0
push 0
call fcn.00409e1d
add esp, 8
test eax, eax
je 0x402d87
push eax
push eax
call ebp
push eax
lea ecx, [esp + 0x2c]
call fcn.00401ab0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402d76
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x402b75
push ecx
mov dword [esp + 0x14], eax
call ebx
jmp 0x402b89
mov ecx, dword [0x415040]
push eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
call fcn.00404720
push 0
push 0x5c
lea ecx, [esp + 0x24]
mov byte [esp + 0x820], 6
call fcn.00404c00
cmp eax, 0xffffffff
jne 0x402bd2
mov edx, dword [esp + 0x30]
lea esi, [edx + 8]
test esi, esi
jne 0x402bb2
xor eax, eax
jmp 0x402bb5
push esi
call ebp
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00401ab0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00401b70
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00404db0
add esp, 8
test eax, eax
jne 0x402c2c
mov eax, dword [esp + 0x10]
mov edx, dword [0x415044]
mov byte [esp + 0x818], 5
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x402d76
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x402d76
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00409660
add esp, 4
jmp 0x402d76
push 0x14
call fcn.00409a86
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
test esi, esi
je 0x402cb9
mov eax, dword [0x415040]
mov dword [esi], eax
mov ecx, dword [0x415040]
lea edi, [esi + 4]
mov dword [edi], ecx
mov edx, dword [0x415040]
lea ebp, [esi + 8]
mov dword [ebp], edx
mov eax, dword [0x415040]
lea ebx, [esi + 0xc]
mov dword [ebx], eax
push 0x4183cc
mov ecx, esi
mov byte [esp + 0x81c], 0xb
call fcn.00404720
push 0x4183cc
mov ecx, edi
call fcn.00404720
push 0x4183cc
mov ecx, ebp
call fcn.00404720
push 0x4183cc
mov ecx, ebx
call fcn.00404720
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x3c]
mov dword [esi + 0x10], 1
jmp 0x402cbb
xor esi, esi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esi]
mov byte [esp + 0x818], 6
cmp eax, ecx
je 0x402d11
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x402ce5
mov edx, dword [0x415044]
add eax, 0xfffffff4
cmp eax, edx
jne 0x402cec
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x402cfa
push ecx
mov ecx, dword [ecx - 8]
push ecx
mov ecx, esi
call fcn.00401ab0
jmp 0x402d11
mov ecx, esi
call fcn.00401c70
mov edx, dword [esp + 0x10]
mov dword [esi], edx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call ebx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [edx + 4]
call fcn.00404650
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
add ecx, 0xc
call fcn.00404650
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea ecx, [eax + 8]
call fcn.00404650
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
add ecx, 0x210
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00403970
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x10]
inc eax
mov byte [esp + 0x818], 5
mov dword [esp + 0x34], eax
call fcn.00401a20
inc edi
cmp edi, 0x3e7
mov dword [esp + 0x3c], edi
jle 0x402a11
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x402f6c
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
lea esi, [eax + 8]
push esi
call fcn.004044f0
mov ecx, str.ERRORLOG.TXT
mov bl, 0xc
test ecx, ecx
mov byte [esp + 0x818], bl
jne 0x402dba
xor eax, eax
jmp 0x402dc1
push str.ERRORLOG.TXT
call ebp
push str.ERRORLOG.TXT
push eax
lea ecx, [esp + 0x18]
call fcn.00401b70
mov edx, dword [esp + 0x10]
push 0
push edx
call fcn.0040966b
add esp, 8
test eax, eax
jne 0x402e88
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00404db0
add esp, 8
test eax, eax
je 0x402e88
push 0x14
call fcn.00409a86
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x818], 0xd
je 0x402e24
mov ecx, eax
call fcn.00402ff0
jmp 0x402e26
xor eax, eax
lea edx, [esp + 0x10]
mov ecx, eax
push edx
mov byte [esp + 0x81c], bl
mov dword [esp + 0x18], eax
call fcn.00404650
mov eax, dword [esp + 0x14]
push str.Crash_log
lea ecx, [eax + 4]
call fcn.00404720
mov ecx, dword [esp + 0x14]
push str.Text_Document
add ecx, 0xc
call fcn.00404720
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea ecx, [eax + 8]
call fcn.00404650
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x14]
add ecx, 0x210
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00403970
push esi
lea ecx, [esp + 0x14]
call fcn.00404720
push str.CRASH.DMP
lea ecx, [esp + 0x14]
call fcn.004047f0
mov eax, dword [esp + 0x10]
push 0
push eax
call fcn.0040966b
add esp, 8
test eax, eax
jne 0x402f5b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00404db0
add esp, 8
test eax, eax
je 0x402f5b
push 0x14
call fcn.00409a86
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov byte [esp + 0x818], 0xe
je 0x402ef4
mov ecx, eax
call fcn.00402ff0
jmp 0x402ef6
xor eax, eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x818], bl
push ecx
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.00404650
mov edx, dword [esp + 0x14]
push str.Crash_Dump
lea ecx, [edx + 4]
call fcn.00404720
mov eax, dword [esp + 0x14]
push str.DMP_File
lea ecx, [eax + 0xc]
call fcn.00404720
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edx + 8]
call fcn.00404650
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x14]
push edx
lea ecx, [eax + 0x210]
mov eax, dword [eax + 0x218]
push eax
call fcn.00403970
lea ecx, [esp + 0x10]
mov byte [esp + 0x818], 5
call fcn.00401a20
lea ecx, [esp + 0x2c]
mov byte [esp + 0x818], 4
call fcn.00401a20
lea ecx, [esp + 0x18]
mov byte [esp + 0x818], 3
call fcn.00401a20
lea ecx, [esp + 0x24]
mov byte [esp + 0x818], 2
call fcn.00401a20
lea ecx, [esp + 0x20]
mov byte [esp + 0x818], 1
call fcn.00401a20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x818], 0
call fcn.00401a20
lea ecx, [esp + 0x28]
mov dword [esp + 0x818], 0xffffffff
call fcn.00401a20
mov ecx, dword [esp + 0x810]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x80c
ret