Function at 0x4095db
Capabilities:
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e403
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x107c
call fcn.004337b0
mov eax, dword [0x44d08c]
xor eax, esp
mov dword [esp + 0x1078], eax
push ebx
push esi
push edi
mov eax, dword [0x44d08c]
xor eax, esp
push eax
lea eax, [esp + 0x1090]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
push eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
push eax
mov esi, ecx
call fcn.00409ada
xor ebx, ebx
mov dword [esp + 0x1098], ebx
push 0x5c
push dword [esp + 0x14]
call fcn.0042711c
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
cmp eax, ebx
je 0x409662
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x409671
lea eax, [ecx - 0x10]
call fcn.004054cf
xor eax, eax
jmp 0x409a63
mov ecx, eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
call fcn.00409b1f
lea edi, [esp + 0x10]
mov byte [esp + 0x1098], 1
call fcn.00408b96
mov byte [esp + 0x1098], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004054cf
push dword [esp + 0x10]
call fcn.0040a7ad
pop ecx
test al, al
jne 0x4096ca
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4096ca
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x409665
mov eax, dword [esp + 0x24]
cmp dword [eax + 8], ebx
je 0x4096c1
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push dword [esp + 0x44]
mov dword [esp + 0x44], ebx
call edi
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4097c6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x3c], esi
push ebx
neg esi
mov dword [esp + 0x3c], eax
sbb esi, esi
lea eax, [esp + 0x3c]
push ebx
and esi, eax
push esi
push dword [ebp + 0x10]
mov dword [esp + 0x50], ebx
push dword [esp + 0x24]
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [esp + 0x40]
call dword [eax + 8]
cmp eax, ebx
je 0x40974a
mov dword [esp + 0x28], 1
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [esp + 0x18]
push str.360TrayMiniDmp_full.dmp
push eax
lea ecx, [esp + 0x18]
call fcn.00409bd2
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
mov byte [esp + 0x10b0], 2
push dword [esp + 0x30]
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x4097b3
push ebx
push ebx
push dword [esp + 0x24]
push 0xa6
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov eax, dword [esp + 0x40]
call dword [eax + 8]
push edi
call esi
mov byte [esp + 0x1098], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004054cf
xor eax, eax
push 0x206
mov word [esp + 0x48], ax
lea eax, [esp + 0x4a]
push ebx
push eax
call fcn.004253c0
lea eax, [esp + 0x50]
add esp, 0xc
push eax
mov eax, str.safemonparam.ini
call fcn.0040a54b
pop ecx
push ebx
call fcn.00426ad5
mov dword [esp + 0x34], eax
pop ecx
lea eax, [esp + 0x30]
push eax
mov esi, str._Y:_m:_d:_H:_M:_S
lea edi, [esp + 0x24]
mov dword [esp + 0x38], edx
call fcn.0040926b
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x109c], 3
push dword [esp + 0x24]
mov esi, str.Param
push str.LastCrashTime
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esp + 0x28], ebx
je 0x409a47
lea eax, [esp + 0x44]
push eax
xor edi, edi
inc edi
push edi
push str.UpLoadDmp
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x409a47
xor eax, eax
push 0x40e
mov word [esp + 0x458], ax
lea eax, [esp + 0x45a]
push ebx
push eax
call fcn.004253c0
lea eax, [esp + 0x460]
add esp, 0xc
push eax
mov eax, str.DumpUper.exe
call fcn.0040a54b
pop ecx
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x45c]
push eax
mov dword [esp + 0x28], ebx
call fcn.0040a592
add esp, 0xc
test eax, eax
je 0x4098cb
mov eax, 0x20000
cmp dword [esp + 0x18], eax
ja 0x4098c7
jne 0x4098cb
cmp dword [esp + 0x14], 0x530
jbe 0x4098cb
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x30]
push eax
mov esi, str._Y__m__d
lea edi, [esp + 0x1c]
call fcn.0040926b
lea edi, [esp + 0x20]
mov byte [esp + 0x1098], 4
call fcn.00408b96
mov byte [esp + 0x1098], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004054cf
mov eax, dword [0x451a2c]
mov ecx, 0x451a2c
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x14]
mov byte [esp + 0x1098], 5
call fcn.00402fbc
lea eax, [esp + 0x44]
push eax
mov eax, esi
push eax
mov esi, str.UperDmpData
push esi
push str.Param
call fcn.0040a4bb
add esp, 0x10
cmp dword [esp + 0x1c], ebx
je 0x409a3b
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], ebx
je 0x409a3b
push dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x409a3b
xor eax, eax
push 0x40e
mov word [esp + 0x868], ax
lea eax, [esp + 0x86a]
push ebx
push eax
call fcn.004253c0
lea eax, [esp + 0x870]
add esp, 0xc
push eax
mov eax, str.DumpUper.exe
call fcn.0040a54b
mov eax, dword [esp + 0x28]
pop ecx
cmp byte [eax + 0xc28], bl
je 0x4099f0
xor eax, eax
push 0x206
mov word [esp + 0x250], ax
lea eax, [esp + 0x252]
push ebx
push eax
call fcn.004253c0
add esp, 0xc
push str.360SPTool.exe
push 0x4547c0
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
lea eax, [esp + 0x250]
push eax
jmp 0x4099f7
push 1
push 0x4545b8
push dword [esp + 0x34]
mov eax, 0x410
push str.__s____s____d_
lea edi, [esp + 0xc84]
call fcn.00409ded
add esp, 0x10
mov eax, edi
push ebx
push eax
lea ecx, [esp + 0x86c]
call fcn.0040a664
pop ecx
pop ecx
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x24]
push esi
push str.Param
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004054cf
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004054cf
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004054cf
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1090]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1078]
xor ecx, esp
call fcn.00425271
mov esp, ebp
pop ebp
ret 0xc