Function at 0x4bc33a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57119d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov dword [ebp - 0x148], ecx
lea ecx, [ebp - 0x1c]
call fcn.00565486
mov dword [ebp - 4], 0
push 0x104
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.0054bfb0
add esp, 0xc
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2b64], 0
je 0x4bc3f9
mov edx, dword [ebp + 8]
mov dword [edx + 0x2b60], 1
lea eax, [ebp - 0x120]
push eax
call fcn.0053534c
add esp, 4
push str.UFD_ALL_FORCEIDSM325ACSM325AC_DOWNGRADEFID.BIN
lea ecx, [ebp - 0x120]
push ecx
call fcn.0054bed0
add esp, 8
mov edx, dword [ebp + 8]
add edx, 0x2fb8
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.0054bed0
add esp, 8
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bc3f7
mov edx, dword [ebp + 8]
mov dword [edx + 0x2b60], 0
jmp 0x4bc45f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b60], 0
je 0x4bc45f
lea ecx, [ebp - 0x120]
push ecx
call fcn.0053534c
add esp, 4
push 0x5ac848
lea edx, [ebp - 0x120]
push edx
call fcn.0054bed0
add esp, 8
mov eax, dword [ebp + 8]
add eax, 0x2fb8
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.0054bed0
add esp, 8
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bc45f
mov eax, dword [ebp + 8]
mov dword [eax + 0x2b60], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2b60], 0
je 0x4bc540
push 0
push 0x40
lea edx, [ebp - 0x120]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00565598
test eax, eax
je 0x4bc52e
lea ecx, [ebp - 0x1c]
call fcn.00565892
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x3d9c], eax
push 0x64
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3d9c]
push eax
call fcn.00536ece
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x4428], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x4428], 0
jne 0x4bc508
push 0x5ac854
mov eax, dword [ebp + 8]
add eax, 0x29fc
push eax
call fcn.0054bec0
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.005657b3
mov dword [ebp - 0x13c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.005654db
mov eax, dword [ebp - 0x13c]
jmp 0x4bc7a0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3d9c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4428]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005656b5
lea ecx, [ebp - 0x1c]
call fcn.005657b3
jmp 0x4bc53b
mov edx, dword [ebp + 8]
mov dword [edx + 0x2b60], 0
jmp 0x4bc781
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x5a8
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x148]
call fcn.004bf8a1
test eax, eax
je 0x4bc767
lea ecx, [ebp - 0x130]
call fcn.00565486
mov byte [ebp - 4], 1
push 0
push 0x40
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x130]
call fcn.00565598
test eax, eax
je 0x4bc749
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2b60], 1
lea ecx, [ebp - 0x130]
call fcn.00565892
mov edx, dword [ebp + 8]
mov dword [edx + 0x3d9c], eax
push 0x64
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3d9c]
push ecx
call fcn.00536ece
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x4428], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4428], 0
jne 0x4bc636
push str.ForceIDBuffer_alloc_Fail_r_n
mov ecx, dword [ebp + 8]
add ecx, 0x29fc
push ecx
call fcn.0054bec0
add esp, 8
lea ecx, [ebp - 0x130]
call fcn.005657b3
mov dword [ebp - 0x140], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.005654db
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.005654db
mov eax, dword [ebp - 0x140]
jmp 0x4bc7a0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3d9c]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4428]
push edx
call fcn.0054bfb0
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3d9c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4428]
push eax
lea ecx, [ebp - 0x130]
call fcn.005656b5
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0
jmp 0x4bc698
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
cmp dword [ebp - 0x138], 8
jge 0x4bc6ca
mov edx, dword [ebp - 0x138]
shl edx, 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + edx + 0x5c8]
test ecx, ecx
je 0x4bc6c8
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x134], edx
jmp 0x4bc6ca
jmp 0x4bc689
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x19c]
and ecx, 8
test ecx, ecx
jne 0x4bc73c
mov edx, dword [ebp + 8]
cmp dword [edx + 0x4764], 6
jge 0x4bc73c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x4764], 1
jl 0x4bc6fe
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x4764], 5
jle 0x4bc73c
mov edx, dword [ebp - 0x134]
shl edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4428]
mov eax, dword [ebp + 8]
mov dl, byte [eax + edx + 0x5c8]
mov byte [ecx + 8], dl
mov eax, dword [ebp - 0x134]
shl eax, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x4428]
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax + 0x5c9]
mov byte [edx + 9], al
lea ecx, [ebp - 0x130]
call fcn.005657b3
jmp 0x4bc756
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2b60], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.005654db
jmp 0x4bc781
mov edx, dword [ebp + 8]
mov dword [edx + 0x2b60], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x19c], 0
mov dword [ebp - 0x144], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.005654db
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4