Function at 0x41a410
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6c50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004e3ca5
mov edi, dword [ebp + 8]
push str.FileCRC.ini
lea eax, [ebp - 0x24]
push edi
push eax
mov byte [ebp - 4], 2
call fcn.00401e30
add esp, 0xc
mov eax, dword [eax]
sub eax, 0x10
push eax
mov byte [ebp - 4], 3
call fcn.004013d0
add esp, 4
add eax, 0x10
push 0x80
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a4b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
push str.FileList
lea ecx, [ebp - 0x1c]
call fcn.0047f010
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edx - 8]
or ecx, eax
jge 0x41a4ef
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401670
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x54]
push eax
push 0x2c
push edx
call fcn.0047e170
mov eax, dword [ebp - 0x4c]
add esp, 0xc
cmp eax, 2
je 0x41a599
call fcn.00407270
push 0x23
push str..ClientPatchMgr.cpp
mov ecx, eax
call fcn.0040a520
mov ecx, dword [esi]
mov edx, dword [edi]
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
push str.CClientPatchMgr_CheckFileCRC_FileCRC_Value__s__Error__File_s_s.
push 0x20
call fcn.0047fc80
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a557
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004e3cf7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a584
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
push eax
call fcn.004d4e85
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x4c]
add esp, 4
cmp eax, 1
jg 0x41a5b7
call fcn.004e2e19
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 4]
push eax
call fcn.004d4e85
add esp, 4
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.004ea406
mov edx, dword [ebp + 8]
push esi
push edx
lea eax, [ebp - 0x28]
mov bl, 6
push eax
mov byte [ebp - 4], bl
call fcn.004092f0
add esp, 0xc
mov eax, dword [eax]
push 0
push 0x20
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.004ea69e
mov esi, eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a61b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x41a667
lea ecx, [ebp - 0x40]
call fcn.004ea2fe
mov ebx, eax
push ebx
mov dword [ebp - 0x2c], edx
call fcn.004e50fe
add esp, 4
mov esi, eax
push ebx
push esi
lea ecx, [ebp - 0x40]
call fcn.004ea119
cmp eax, ebx
jne 0x41a654
push 0xffffffffffffffff
push eax
push esi
call fcn.0047e040
add esp, 0xc
mov dword [ebp - 0x18], eax
push esi
call fcn.004e50f9
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.004ea3a4
jmp 0x41a66a
mov ebx, dword [ebp - 0x2c]
cmp dword [ebp - 0x20], ebx
jne 0x41a67b
cmp edi, dword [ebp - 0x18]
jne 0x41a67b
mov esi, 1
jmp 0x41a6b5
xor esi, esi
call fcn.00407270
push 0x3e
push str..ClientPatchMgr.cpp
mov ecx, eax
call fcn.0040a520
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x18]
push eax
push ecx
push ebx
push edi
push edx
push str.CClientPatchMgr_CheckFileCRC_Failed__CheckCRC__u__u___FileCRC__u__u___File_s_s.
push 0x20
call fcn.0047fc80
add esp, 0x20
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004ea445
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a6e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004e3cf7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41a70f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8