Function at 0x44f170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x40], esp
mov eax, dword [0x587040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], fcn.0044f480
mov dword [ecx + 4], 0
mov byte [ecx + 8], 0
xor eax, eax
dec eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
push eax
sub esp, 0xc
mov edi, esp
mov dword [ebp - 0x34], edi
add edi, 4
cmp byte [eax + 0xb], 0
mov dword [ebp - 0x44], ecx
js 0x44f1cb
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
movsd xmm0, qword [eax]
movsd qword [edi], xmm0
jmp 0x44f1d7
mov ecx, edi
push dword [eax + 4]
push dword [eax]
call fcn.004a33d0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
movsx ebx, byte [ecx + 0xf]
test ebx, ebx
mov esi, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov ecx, edi
cmovs ecx, esi
mov edx, ebx
cmovs edx, eax
test edx, edx
je 0x44f205
add edx, edx
xor eax, eax
jmp 0x44f3bd
mov ecx, ebx
jmp 0x44f218
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 0xf]
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
movzx ebx, cl
test cl, cl
mov dword [ebp - 0x3c], edi
cmovns esi, edi
cmovs ebx, eax
test ebx, ebx
jne 0x44f3c6
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x1c], eax
movsd xmm0, qword [ecx]
movsd qword [ebp - 0x24], xmm0
xorps xmm0, xmm0
movsd qword [ecx], xmm0
mov dword [ecx + 8], 0
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0xf], 0
jns 0x44f261
push dword [ecx]
call fcn.004ec97e
add esp, 4
mov esp, dword [ebp - 0x40]
lea ebx, [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
push 0x56badc
push ebx
call fcn.00439190
add esp, 0xc
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x44f286
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea edi, [ebp - 0x20]
mov ecx, ebx
push eax
push esi
call fcn.004a3590
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 7]
mov dword [ebp - 0x15], edx
mov dword [ebp - 0x18], ecx
mov bl, byte [eax + 0xb]
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], 0
cmp byte [edi + 7], 0
jns 0x44f2c2
push dword [ebp - 0x24]
call fcn.004ec97e
add esp, 4
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x15]
mov dword [edi + 3], ecx
mov dword [edi], eax
mov byte [ebp - 0x19], bl
cmp byte [ebp - 0x25], 0
jns 0x44f2e4
push dword [ebp - 0x30]
call fcn.004ec97e
add esp, 4
mov bl, byte [ebp + 0x10]
cmp byte [ebp - 0x19], 0
mov esi, dword [ebp - 0x44]
jns 0x44f2f6
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
test bl, bl
jne 0x44f30c
push dword [ebp - 0x38]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
jmp 0x44f31b
xor eax, eax
push dword [ebp - 0x38]
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [esi + 4], eax
je 0x44f34d
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x44f393
mov eax, edi
inc eax
cmp eax, 2
jb 0x44f344
mov dword [esi + 4], edi
call fcn.004b8af0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
inc ecx
cmp ecx, 2
jb 0x44f36c
cmp eax, 0xb7
sete al
xor bl, 1
or bl, al
mov byte [esi + 8], bl
cmp byte [ebp - 0x19], 0
jns 0x44f37d
push dword [ebp - 0x24]
call fcn.004ec97e
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ecef0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.004b8af0
push dword [esi + 4]
call fcn.004a4810
add esp, 4
mov dword [esi + 4], 0
jmp 0x44f334
mov word [ecx + eax], 0x21
add eax, 2
cmp edx, eax
je 0x44f209
cmp word [ecx + eax], 0x5c
jne 0x44f3b2
jmp 0x44f3ac
add ebx, ebx
xor edi, edi
movzx eax, word [esi + edi]
push eax
call fcn.00502f4c
add esp, 4
mov word [esi + edi], ax
add edi, 2
cmp ebx, edi
jne 0x44f3ca
jmp 0x44f22b