Function at 0x407824
Capabilities:
Delete file

Disassembly:
push ebp
mov eax, 0x2e34
lea ebp, [esp - 0x2db4]
call fcn.004396e0
mov eax, dword [0x45e56c]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x2dbc], ebx
mov dword [ebp + 0x2db0], eax
je 0x407e07
push dword [ebp + 0x2dbc]
call fcn.00438020
test eax, eax
pop ecx
je 0x407e07
cmp dword [ebp + 0x2dc0], ebx
je 0x407e07
push dword [ebp + 0x2dc0]
call fcn.00438020
test eax, eax
pop ecx
je 0x407e07
cmp word [ebp + 0x2dc4], bx
je 0x407e07
push edi
mov edi, 0x463a88
mov ecx, edi
mov byte [ebp + 0x27a8], bl
call fcn.00417385
test eax, eax
je 0x4078cb
mov ecx, edi
call fcn.00417385
push eax
lea eax, [ebp + 0x27a8]
push eax
call fcn.004380c0
lea eax, [ebp + 0x27a8]
push eax
call fcn.00428fdb
add esp, 0xc
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.004382a8
pop ecx
mov ecx, dword [0x4638f8]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [0x4638f8]
inc eax
cmp ecx, ebx
mov dword [ebp - 0x60], eax
jne 0x4078f4
mov dword [ebp - 0x5c], ebx
jmp 0x407906
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov ecx, dword [0x4638f8]
cmp ecx, ebx
mov dword [ebp - 0x5c], eax
jne 0x40790b
mov dword [ebp - 0x78], ebx
jmp 0x40791d
mov eax, dword [ecx]
call dword [eax + 0x58]
mov ecx, dword [0x4638f8]
cmp ecx, ebx
mov dword [ebp - 0x78], eax
jne 0x407922
mov dword [ebp - 0x68], ebx
jmp 0x407934
mov eax, dword [ecx]
call dword [eax + 0x54]
mov ecx, dword [0x4638f8]
cmp ecx, ebx
mov dword [ebp - 0x68], eax
jne 0x407939
mov dword [ebp - 0x70], ebx
jmp 0x40794b
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [0x4638f8]
cmp ecx, ebx
mov dword [ebp - 0x70], eax
jne 0x407950
mov dword [ebp - 0x7c], ebx
jmp 0x407962
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [0x4638f8]
cmp ecx, ebx
mov dword [ebp - 0x7c], eax
jne 0x407970
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x6c], ebx
cmp ecx, ebx
jne 0x4079b9
xor esi, esi
jmp 0x4079d0
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [0x4638f8]
cmp ecx, ebx
mov dword [ebp - 0x64], eax
je 0x407965
mov eax, dword [ecx]
call dword [eax + 0x3c]
test eax, eax
mov ecx, dword [0x4638f8]
je 0x407965
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [0x4638f8]
mov esi, eax
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, 0xe10
sub eax, esi
xor edx, edx
div ecx
mov ecx, dword [0x4638f8]
mov dword [ebp - 0x6c], eax
jmp 0x407968
mov eax, dword [ecx]
call dword [eax + 0x40]
mov ecx, dword [ebp - 0x80]
sub ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 0x15180
div ecx
mov esi, eax
mov eax, dword [0x463a9c]
cmp eax, ebx
mov ebx, str.true
je 0x4079ee
push ebx
push eax
call fcn.0042989e
test al, al
pop ecx
pop ecx
mov dword [ebp - 0x74], ebx
jne 0x4079f5
mov dword [ebp - 0x74], str.false
cmp byte [0x463924], 0
jne 0x407a03
mov ebx, str.false
push 0
mov ecx, 0x463fd4
call fcn.00405415
push eax
push dword [ebp - 0x5c]
push dword [ebp - 0x78]
push dword [ebp - 0x68]
push dword [ebp - 0x70]
push dword [ebp - 0x7c]
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
push esi
mov esi, 0x463930
mov ecx, esi
call fcn.0041a898
push eax
mov ecx, esi
call fcn.004199dd
push eax
mov ecx, esi
call fcn.0041a197
push eax
push dword [ebp - 0x74]
mov ecx, edi
push ebx
call fcn.004173b8
push eax
lea eax, [ebp + 0x27a8]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push dword [ebp + 0x2dbc]
push str._s_type0submitcount_dbuild_sgameid_dcrashedthissession_sisbeta_sskinnedgameid_dgamesetid_dctgs_dinstalleddays_dtrialhours_dgraceplaycount_dgraceplaytime_dboughtplaycount_dboughtplaytime_dtrialplaycount_dtrialplaytime_dfunpassstatus_d
push eax
call fcn.0043911c
mov ebx, dword [ebp + 0x2dc8]
add esp, 0x50
test ebx, ebx
je 0x407a7f
cmp ebx, 2
jne 0x407aab
push str.application_x_www_form_urlencoded
push 0
push 0
push dword [ebp + 0x2dc4]
lea eax, [ebp - 0x58]
push dword [ebp + 0x2dc0]
push eax
call fcn.00422fca
mov ecx, dword [0x4638f8]
mov eax, dword [ecx]
add esp, 0x18
call dword [eax + 0x6c]
mov ecx, esi
call fcn.00419466
test ebx, ebx
mov dword [ebp - 0x5c], eax
je 0x407ac2
cmp ebx, 2
jne 0x407b74
mov eax, dword [0x463ab0]
test eax, eax
je 0x407b74
mov ebx, str.true
push ebx
push eax
call fcn.0042989e
test al, al
pop ecx
pop ecx
je 0x407b79
cmp dword [ebp - 0x5c], 0
je 0x407b79
push dword [ebp - 0x5c]
call fcn.0041fca1
test al, al
pop ecx
je 0x407b79
mov eax, dword [0x463a9c]
test eax, eax
je 0x407b14
push ebx
push eax
call fcn.0042989e
pop ecx
test al, al
pop ecx
mov eax, ebx
jne 0x407b19
mov eax, str.false
push eax
mov ecx, edi
call fcn.004173b8
push eax
lea eax, [ebp + 0x27a8]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push dword [ebp + 0x2dbc]
push str._s_type1submitcount_dbuild_sgameid_disbeta_s
push eax
call fcn.0043911c
push 0x19000
push str.ZylomGameData
push dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
push dword [ebp + 0x2dc4]
push dword [ebp + 0x2dc0]
push eax
call fcn.004231a5
add esp, 0x34
test al, al
je 0x407b79
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x407b79
mov ebx, str.true
mov ecx, esi
call fcn.00419572
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x2cac]
push 0x4637b8
push eax
call fcn.004380c0
mov esi, 0x44cec4
lea eax, [ebp + 0x2cac]
push esi
push eax
call fcn.0042980b
add esp, 0x10
test al, al
jne 0x407bbc
lea eax, [ebp + 0x2cac]
push esi
push eax
call fcn.004380d0
pop ecx
pop ecx
lea eax, [ebp + 0x2cac]
push eax
lea eax, [ebp + 0x2ba8]
push eax
call fcn.004380c0
lea eax, [ebp + 0x2ba8]
push str.ZylomCrashReport.log
push eax
call fcn.004380d0
lea eax, [ebp + 0x2cac]
push str.ZylomCrashReport.dmp
push eax
call fcn.004380d0
add esp, 0x18
cmp dword [ebp + 0x2dc8], 1
je 0x407c0a
cmp dword [ebp + 0x2dc8], 2
jne 0x407e05
mov eax, dword [0x463ab4]
test eax, eax
je 0x407e05
push ebx
push eax
call fcn.0042989e
test al, al
pop ecx
pop ecx
je 0x407e05
lea eax, [ebp + 0x2ba8]
push eax
call fcn.0041fca1
test al, al
pop ecx
je 0x407c4a
lea eax, [ebp + 0x2cac]
push eax
call fcn.0041fca1
test al, al
pop ecx
jne 0x407c8e
mov eax, dword [0x463a9c]
test eax, eax
je 0x407e05
push ebx
push eax
call fcn.0042989e
test al, al
pop ecx
pop ecx
je 0x407e05
push dword [ebp - 0x5c]
call fcn.0041fca1
test al, al
pop ecx
je 0x407e05
mov ecx, dword [0x4638f8]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
test al, al
je 0x407e05
cmp byte [0x463924], 0
mov eax, ebx
jne 0x407c9e
mov eax, str.false
push eax
mov ecx, edi
call fcn.004173b8
push eax
lea eax, [ebp + 0x27a8]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push dword [ebp + 0x2dbc]
push str._s_type2submitcount_dbuild_sgameid_dcrashedthissession_s
push eax
call fcn.0043911c
lea eax, [ebp + 0x2ba8]
push eax
call fcn.0041fca1
add esp, 0x20
test al, al
mov esi, 0x19000
je 0x407d13
push esi
push str.GameDrWatsonLog
lea eax, [ebp + 0x2ba8]
push eax
push dword [ebp + 0x2dc4]
lea eax, [ebp - 0x58]
push dword [ebp + 0x2dc0]
push eax
call fcn.004231a5
add esp, 0x18
test al, al
je 0x407d13
lea eax, [ebp + 0x2ba8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [0x463924], 0
mov eax, ebx
jne 0x407d23
mov eax, str.false
push eax
mov ecx, edi
call fcn.004173b8
push eax
lea eax, [ebp + 0x27a8]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push dword [ebp + 0x2dbc]
push str._s_type3submitcount_dbuild_sgameid_dcrashedthissession_s
push eax
call fcn.0043911c
lea eax, [ebp + 0x2cac]
push eax
call fcn.0041fca1
add esp, 0x20
test al, al
je 0x407d93
push esi
push str.GameDrWatsonDump
lea eax, [ebp + 0x2cac]
push eax
push dword [ebp + 0x2dc4]
lea eax, [ebp - 0x58]
push dword [ebp + 0x2dc0]
push eax
call fcn.004231a5
add esp, 0x18
test al, al
je 0x407d93
lea eax, [ebp + 0x2cac]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [0x463924], 0
jne 0x407da1
mov ebx, str.false
push ebx
mov ecx, edi
call fcn.004173b8
push eax
lea eax, [ebp + 0x27a8]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x58]
push dword [ebp + 0x2dbc]
push str._s_type4submitcount_dbuild_sgameid_dcrashedthissession_s
push eax
call fcn.0043911c
push dword [ebp - 0x5c]
call fcn.0041fca1
add esp, 0x20
test al, al
je 0x407e05
push esi
push str.GameDrWatsonExtra
push dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
push dword [ebp + 0x2dc4]
push dword [ebp + 0x2dc0]
push eax
call fcn.004231a5
add esp, 0x18
test al, al
je 0x407e05
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop edi
mov ecx, dword [ebp + 0x2db0]
pop ebx
call fcn.0043800c
add ebp, 0x2db4
leave
ret