Function at 0x411c8f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f2203
mov eax, dword fs:[0]
push eax
sub esp, 0x790
mov eax, dword [0x65bf90]
xor eax, esp
mov dword [esp + 0x788], eax
push ebx
push esi
push edi
mov eax, dword [0x65bf90]
xor eax, esp
push eax
lea eax, [esp + 0x7a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [esp + 0x14], eax
cmp dword [ebp + 0xc], edi
jne 0x41294b
call fcn.0040ae81
push eax
push str._sdlcachepatchCache
lea eax, [esp + 0x19c]
push pe_nt_image_headers32
push eax
call fcn.005be145
lea eax, [esp + 0x1a4]
add esp, 0x10
mov dword [esp + 0x11c], 0xf
mov dword [esp + 0x118], edi
mov byte [esp + 0x108], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411d2c
sub eax, ecx
push eax
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x110]
call fcn.004022cd
lea eax, [esp + 0x108]
push eax
mov dword [esp + 0x7ac], edi
call fcn.0047a900
mov bl, al
pop ecx
neg bl
sbb bl, bl
or dword [esp + 0x7a8], 0xffffffff
xor esi, esi
push edi
inc esi
push esi
lea ecx, [esp + 0x110]
call fcn.00402696
inc bl
lea eax, [esp + 0x194]
je 0x411db3
push eax
push str.EnsureDirExistSafe_Failed_Dir_s
push 0x61b
push 4
push dword [0x6686d0]
mov ebx, str.CUpdateThread::OnDownloadPatchCompleted
mov edi, str.UpdateThread.cpp
call fcn.004169e0
add esp, 0x14
jmp 0x41294b
mov dword [esp + 0x11c], 0xf
mov dword [esp + 0x118], edi
mov byte [esp + 0x108], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411dd0
sub eax, ecx
push eax
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x110]
call fcn.004022cd
mov eax, dword [esp + 0x14]
add eax, 0x54
push eax
xor ecx, ecx
lea edx, [esp + 0x10c]
mov dword [esp + 0x7ac], esi
mov dword [esp + 0x18], eax
call fcn.0041502f
or dword [esp + 0x7ac], 0xffffffff
pop ecx
push edi
push esi
lea ecx, [esp + 0x110]
mov dword [esp + 0x18], eax
call fcn.00402696
lea eax, [esp + 0xec]
cmp dword [esp + 0x10], edi
je 0x411f0a
push 0xa8
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov dword [esp + 0x7a8], 2
cmp dword [eax + 0x14], 0x10
jb 0x411e5b
mov eax, dword [eax]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
sub esp, 0x1c
push 7
pop ecx
mov edi, esp
push eax
mov eax, dword [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [eax + 0x58]
mov ebx, str._s_s__d
push ebx
call fcn.00414eb6
or dword [esp + 0x7d0], 0xffffffff
add esp, 0x28
push 0
push 1
lea ecx, [esp + 0xf4]
call fcn.00402696
lea eax, [esp + 0xec]
push 0xa8
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov dword [esp + 0x7a8], 3
cmp dword [eax + 0x14], 0x10
jb 0x411ec2
mov eax, dword [eax]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
sub esp, 0x1c
push 7
pop ecx
mov edi, esp
push eax
push ebx
push 0x624
push 4
push dword [0x6686d0]
rep movsd dword es:[edi], dword [esi]
mov ebx, str.CUpdateThread::OnDownloadPatchCompleted
mov edi, str.UpdateThread.cpp
call fcn.004169e0
add esp, 0x34
push 0
push 1
lea ecx, [esp + 0xf4]
call fcn.00402696
jmp 0x41294b
mov ebx, 0xab
push ebx
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov dword [esp + 0x7a8], 4
cmp dword [eax + 0x14], 0x10
jb 0x411f2b
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x58]
mov esi, 0x6278a4
push esi
call fcn.00414eb6
or dword [esp + 0x7b0], 0xffffffff
pop ecx
pop ecx
push 0
push 1
lea ecx, [esp + 0xf4]
call fcn.00402696
lea eax, [esp + 0xec]
push ebx
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov dword [esp + 0x7a8], 5
cmp dword [eax + 0x14], 0x10
jb 0x411f7b
mov eax, dword [eax]
push eax
push esi
push 0x62a
push 2
push dword [0x6686d0]
mov ebx, str.CUpdateThread::OnDownloadPatchCompleted
mov edi, str.UpdateThread.cpp
call fcn.004169e0
or dword [esp + 0x7bc], 0xffffffff
add esp, 0x14
xor edi, edi
push edi
push 1
lea ecx, [esp + 0xf4]
call fcn.00402696
lea eax, [esp + 0x194]
push eax
push str._sChangeLists.txt
lea eax, [esp + 0x49c]
push pe_nt_image_headers32
push eax
mov dword [esp + 0x20], edi
call fcn.005be145
add esp, 0x10
lea eax, [esp + 0x494]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00413583
mov dword [esp + 0x7a8], 6
cmp dword [esp + 0x80], edi
jne 0x412099
mov esi, 0xb5
lea eax, [esp + 0xec]
push esi
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov byte [esp + 0x7a8], 7
cmp dword [eax + 0x14], 0x10
jb 0x41202a
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x58]
call fcn.00414eb6
pop ecx
push 0
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x7b0], 6
call fcn.00402696
lea eax, [esp + 0xec]
push esi
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov byte [esp + 0x7a8], 8
cmp dword [eax + 0x14], 0x10
jb 0x412070
mov eax, dword [eax]
push eax
push 0x637
push 4
push dword [0x6686d0]
mov ebx, str.CUpdateThread::OnDownloadPatchCompleted
mov edi, str.UpdateThread.cpp
call fcn.004169e0
lea ecx, [esp + 0xfc]
jmp 0x412912
and dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0xf
mov byte [esp + 0xd0], 0
mov ebx, 0x2000
mov eax, ebx
lea ecx, [esp + 0xd0]
mov byte [esp + 0x7a8], 9
call fcn.004042a7
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x28], 1
jne 0x4125d0
cmp dword [esp + 0xe4], 0x10
mov eax, dword [esp + 0xd0]
jae 0x4120f9
lea eax, [esp + 0xd0]
push ebx
push 0
push eax
call fcn.005c2720
mov eax, dword [esp + 0xdc]
add esp, 0xc
cmp dword [esp + 0xe4], 0x10
jae 0x41211d
lea eax, [esp + 0xd0]
push 0
push ebx
push eax
lea esi, [esp + 0x28]
call fcn.00408f4d
cmp dword [esp + 0xe4], 0x10
mov eax, dword [esp + 0xd0]
jae 0x412142
lea eax, [esp + 0xd0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412145
sub eax, edx
je 0x4125b9
cmp dword [esp + 0xe4], 0x10
mov esi, dword [esp + 0xd0]
jae 0x41216c
lea esi, [esp + 0xd0]
push 5
mov edi, str.add:
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x41217f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412190
mov dword [esp + 0x10], 1
jmp 0x4125b9
cmp dword [esp + 0xe4], 0x10
mov esi, dword [esp + 0xd0]
jae 0x4121a8
lea esi, [esp + 0xd0]
push 8
mov edi, str.modify:
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4121bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4121cc
mov dword [esp + 0x10], 2
jmp 0x4125b9
cmp dword [esp + 0xe4], 0x10
mov esi, dword [esp + 0xd0]
jae 0x4121e4
lea esi, [esp + 0xd0]
push 8
mov edi, str.remove:
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4121f7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412208
mov dword [esp + 0x10], 3
jmp 0x4125b9
cmp dword [esp + 0x10], 1
je 0x41226d
cmp dword [esp + 0x10], 2
je 0x41226d
cmp dword [esp + 0x10], 3
jne 0x4125b9
cmp dword [esp + 0xe4], 0x10
mov eax, dword [esp + 0xd0]
jae 0x412239
lea eax, [esp + 0xd0]
push eax
call fcn.0040ae81
push eax
push str._sgame_s
lea eax, [esp + 0x5a0]
push pe_nt_image_headers32
push eax
call fcn.005be145
add esp, 0x14
lea eax, [esp + 0x594]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4125b9
push 0xf
pop edi
xor esi, esi
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], esi
mov byte [esp + 0x140], 0
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], esi
mov byte [esp + 0x108], 0
push 0x5c
lea eax, [esp + 0xd4]
mov byte [esp + 0x7ac], 0xb
call fcn.0041338b
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4122e8
push esi
push 0x627ca0
lea ecx, [esp + 0x148]
call fcn.004022cd
push ebx
push esi
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x114]
call fcn.004025f3
jmp 0x412387
lea eax, [ebx + 1]
push eax
mov dword [esp + 0x18], eax
push 0
lea eax, [esp + 0xd8]
push eax
lea esi, [esp + 0xf8]
call fcn.004042ca
mov esi, eax
lea edi, [esp + 0x140]
mov byte [esp + 0x7a8], 0xc
call fcn.00405d94
push 0
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x7b0], 0xb
call fcn.00402696
mov eax, dword [esp + 0xe0]
sub eax, ebx
push eax
push dword [esp + 0x18]
lea eax, [esp + 0xd8]
push eax
lea esi, [esp + 0xf8]
call fcn.004042ca
mov esi, eax
lea edi, [esp + 0x108]
mov byte [esp + 0x7a8], 0xd
call fcn.00405d94
push 0
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x7b0], 0xb
call fcn.00402696
push 0xf
pop edi
cmp dword [esp + 0x154], 0x10
mov eax, dword [esp + 0x140]
jae 0x41239f
lea eax, [esp + 0x140]
push eax
lea eax, [esp + 0x198]
push eax
mov ebx, str._sgame_s
push ebx
mov esi, pe_nt_image_headers32
lea eax, [esp + 0x3a0]
push esi
push eax
call fcn.005be145
mov eax, dword [esp + 0x154]
add esp, 0x14
cmp dword [esp + 0x154], 0x10
jae 0x4123dc
lea eax, [esp + 0x140]
push eax
call fcn.0040ae81
push eax
push ebx
lea eax, [esp + 0x2a0]
push esi
push eax
call fcn.005be145
add esp, 0x14
xor ebx, ebx
lea eax, [esp + 0x394]
mov dword [esp + 0x170], edi
mov dword [esp + 0x16c], ebx
mov byte [esp + 0x15c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412416
sub eax, esi
push eax
lea eax, [esp + 0x398]
push eax
lea ecx, [esp + 0x164]
call fcn.004022cd
push ebx
lea eax, [esp + 0x10c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x164]
mov byte [esp + 0x7b0], 0xe
call fcn.00402c14
lea eax, [esp + 0x294]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412474
sub eax, esi
push eax
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0x12c]
call fcn.004022cd
push ebx
lea eax, [esp + 0x10c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x12c]
mov byte [esp + 0x7b0], 0xf
call fcn.00402c14
lea eax, [esp + 0x294]
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4124d2
sub eax, ecx
push eax
lea eax, [esp + 0x298]
push eax
lea ecx, [esp + 0xf4]
call fcn.004022cd
lea eax, [esp + 0xec]
push eax
mov byte [esp + 0x7ac], 0x10
call fcn.0047a900
mov bl, al
pop ecx
neg bl
sbb bl, bl
xor edi, edi
xor esi, esi
push edi
inc esi
push esi
lea ecx, [esp + 0xf4]
mov byte [esp + 0x7b0], 0xf
call fcn.00402696
inc bl
jne 0x4126d7
mov ecx, dword [esp + 0x124]
push 0x10
pop ebx
cmp dword [esp + 0x138], ebx
jae 0x412549
lea ecx, [esp + 0x124]
mov eax, dword [esp + 0x15c]
cmp dword [esp + 0x170], ebx
jae 0x412560
lea eax, [esp + 0x15c]
push ecx
push eax
push 5
pop eax
call fcn.0047a960
pop ecx
pop ecx
test al, al
je 0x41274e
push edi
push esi
lea ecx, [esp + 0x12c]
call fcn.00402696
push edi
push esi
lea ecx, [esp + 0x164]
call fcn.00402696
push edi
push esi
lea ecx, [esp + 0x110]
call fcn.00402696
push edi
push esi
lea ecx, [esp + 0x148]
mov byte [esp + 0x7b0], 9
call fcn.00402696
mov ebx, 0x2000
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x28], 1
je 0x4120e1
mov esi, 0x6278a4
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x60]
test eax, eax
je 0x4128ea
cmp dword [eax], 0
je 0x4128ea
call fcn.0040ae81
push eax
push str._sgame
lea eax, [esp + 0x69c]
push pe_nt_image_headers32
push eax
call fcn.005be145
mov eax, dword [edi + 0x60]
mov ecx, dword [eax]
lea eax, [edi + 0x84]
add esp, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x41261b
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x698]
push eax
call dword [edx + 0xc]
test al, al
lea eax, [esp + 0xec]
jne 0x41282c
mov ebx, 0xb9
push ebx
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov byte [esp + 0x7a8], 0x13
cmp dword [eax + 0x14], 0x10
jb 0x412656
mov eax, dword [eax]
mov edi, dword [edi + 0x58]
push eax
push esi
call fcn.00414eb6
pop ecx
pop ecx
push 0
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x7b0], 9
call fcn.00402696
lea eax, [esp + 0xec]
push ebx
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov byte [esp + 0x7a8], 0x14
cmp dword [eax + 0x14], 0x10
jb 0x41269a
mov eax, dword [eax]
push eax
push esi
push 0x68f
push 4
push dword [0x6686d0]
mov ebx, str.CUpdateThread::OnDownloadPatchCompleted
mov edi, str.UpdateThread.cpp
call fcn.004169e0
add esp, 0x14
push 0
push 1
lea ecx, [esp + 0xf4]
call fcn.00402696
lea ecx, [esp + 0xd0]
jmp 0x412915
lea eax, [esp + 0x294]
push eax
push str.EnsureDirExistSafe_Failed_Dir_s
push 0x66d
push 4
push dword [0x6686d0]
mov ebx, str.CUpdateThread::OnDownloadPatchCompleted
mov edi, str.UpdateThread.cpp
call fcn.004169e0
xor esi, esi
add esp, 0x14
xor edi, edi
inc esi
push edi
push esi
lea ecx, [esp + 0x12c]
call fcn.00402696
push edi
push esi
lea ecx, [esp + 0x164]
call fcn.00402696
push edi
push esi
lea ecx, [esp + 0x110]
call fcn.00402696
push edi
push esi
lea ecx, [esp + 0x148]
call fcn.00402696
push edi
push esi
lea ecx, [esp + 0xd8]
jmp 0x412919
lea eax, [esp + 0xec]
push 0xb6
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov byte [esp + 0x7a8], 0x11
mov ecx, dword [esp + 0x124]
cmp dword [esp + 0x138], ebx
jae 0x412781
lea ecx, [esp + 0x124]
cmp dword [eax + 0x14], ebx
jb 0x412788
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 0x58]
mov ebx, 0x628bac
push ebx
call fcn.00414eb6
add esp, 0xc
push 0
push esi
lea ecx, [esp + 0xf4]
mov byte [esp + 0x7b0], 0xf
call fcn.00402696
lea eax, [esp + 0xec]
push 0xb6
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov byte [esp + 0x7a8], 0x12
cmp dword [esp + 0x138], 0x10
mov ecx, dword [esp + 0x124]
jae 0x4127ea
lea ecx, [esp + 0x124]
cmp dword [eax + 0x14], 0x10
jb 0x4127f2
mov eax, dword [eax]
push ecx
push eax
push ebx
push 0x673
push 4
push dword [0x6686d0]
mov ebx, str.CUpdateThread::OnDownloadPatchCompleted
mov edi, str.UpdateThread.cpp
call fcn.004169e0
add esp, 0x18
xor edi, edi
xor esi, esi
push edi
inc esi
push esi
lea ecx, [esp + 0xf4]
call fcn.00402696
jmp 0x412708
mov ebx, 0xb7
push ebx
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov byte [esp + 0x7a8], 0x15
cmp dword [eax + 0x14], 0x10
jb 0x41284a
mov eax, dword [eax]
mov edi, dword [edi + 0x58]
push eax
push esi
call fcn.00414eb6
pop ecx
pop ecx
push 0
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x7b0], 9
call fcn.00402696
lea eax, [esp + 0x178]
push ebx
push eax
call fcn.00414e4b
pop ecx
pop ecx
mov byte [esp + 0x7a8], 0x16
cmp dword [eax + 0x14], 0x10
jb 0x41288e
mov eax, dword [eax]
push eax
push esi
push 0x693
push 4
push dword [0x6686d0]
mov ebx, str.CUpdateThread::OnDownloadPatchCompleted
mov edi, str.UpdateThread.cpp
call fcn.004169e0
add esp, 0x14
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x180]
mov byte [esp + 0x7b0], 9
call fcn.00402696
mov eax, dword [esp + 0x18]
push esi
push esi
push 0x40a
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push str.__UpdateThread_WM_CHECK_PATCH
push 0x695
push 2
jmp 0x4128f6
push str.Invalid_m_pBridgePlugin
push 0x686
push 4
push dword [0x6686d0]
mov ebx, str.CUpdateThread::OnDownloadPatchCompleted
mov edi, str.UpdateThread.cpp
call fcn.004169e0
lea ecx, [esp + 0xe0]
add esp, 0x10
push 0
push 1
call fcn.00402696
or dword [esp + 0x7a8], 0xffffffff
lea ecx, [esp + 0x84]
call fcn.00413612
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.005de83b
pop ecx
mov ecx, dword [esp + 0x7a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x788]
xor ecx, esp
call fcn.005bdb17
mov esp, ebp
pop ebp
ret 0xc