Function at 0x45c000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a7b3
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x543720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
or esi, 0xffffffff
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
push 0x104
push 0
push 0x105
mov dword [ebp - 4], 0
push eax
mov dword [edi], 0
call fcn.004e8010
push 0x104
lea eax, [ebp - 0x12f]
mov byte [ebp - 0x130], 0
push 0
push eax
call fcn.004e4b60
add esp, 0x1c
call fcn.00419840
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x45c0d5
movdqa xmm0, xmmword [0x52e750]
lea ecx, [ebp - 0x24]
push ecx
push eax
movdqu xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebx + 0xc]
push 0
push 0
push 0x801a
push 0
call eax
test eax, eax
jns 0x45c0fb
mov dword [edi], 3
jmp 0x45c266
cmp byte [ebp - 0x130], 0
jne 0x45c108
xor ecx, ecx
jmp 0x45c11a
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45c111
sub ecx, edx
push ecx
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x148]
call fcn.00402090
push str.GlobalMgr.db
lea edx, [ebp - 0x148]
lea ecx, [ebp - 0x28]
call fcn.0045dcb0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 1
cmp eax, esi
je 0x45c191
cmp dword [ebp - 0x134], 0x10
jb 0x45c16a
push dword [ebp - 0x148]
call fcn.004e03e4
add esp, 4
push esi
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
call fcn.004032b0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x45c1a6
push dword [ebp - 0x28]
call fcn.004e03e4
add esp, 4
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmovae eax, dword [ebp - 0x148]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x45c1f6
mov dword [edi], 0x50
jmp 0x45c231
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x45c260
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
push 0
cmovae eax, dword [ebp - 0x148]
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x45c260
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
push 0x104
cmovae eax, dword [ebp - 0x148]
push eax
push 0x105
push dword [ebp - 0x14c]
call fcn.004e261e
add esp, 0x10
jmp 0x45c266
mov dword [edi], 0x65f
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x134], 0x10
jb 0x45c284
push dword [ebp - 0x148]
call fcn.004e03e4
add esp, 4
mov dword [ebp - 0x134], 0xf
mov eax, esi
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e03e9
mov esp, ebp
pop ebp
ret 0x10