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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e95d0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6670f4]
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 esi, ecx
cmp dword [esi + 0x18], 0
lea edi, [esi + 0x18]
je 0x44c4a0
mov eax, 1
jmp 0x44c7eb
cmp dword [ebp + 8], 0
je 0x44c4c7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44c4b0
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44c4c0
test al, 0x10
je 0x44c4c7
xor eax, eax
jmp 0x44c7eb
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00449970
lea ecx, [ebp - 0x28]
call fcn.004525f0
add esp, 0x18
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x44c4ec
mov eax, dword [eax]
mov ecx, eax
call fcn.004516e0
test eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
sete bl
cmp edx, 8
jb 0x44c539
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44c52f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c809
push edx
push ecx
call fcn.0050ed4e
add esp, 8
test bl, bl
jne 0x44c4c0
mov eax, dword [esi + 0x2c]
mov edx, 0x12
test eax, eax
mov ecx, 0x20
mov ebx, 0x1012
cmove ecx, edx
mov edx, 0x1002
cmove edx, ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x2c], edx
je 0x44c73e
cmp dword [esi + 0x30], 0
je 0x44c73e
push esi
lea ecx, [ebp - 0x5c]
call fcn.00449970
mov dword [ebp - 4], 1
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], 0
cmovae eax, dword [ebp - 0x5c]
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
call fcn.00454320
mov ebx, dword [ebp - 0x30]
add esp, 4
test eax, eax
je 0x44c662
test ebx, ebx
je 0x44c685
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x44c662
push eax
push ebx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], 0
call fcn.00453ff0
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
je 0x44c60e
test eax, eax
je 0x44c60e
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x40], ecx
test ecx, ecx
je 0x44c60e
mov dword [ebp - 0x44], eax
jmp 0x44c617
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ecx
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x44c652
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x44c649
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push eax
call fcn.0058bd80
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x2c], eax
jmp 0x44c652
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x44c662
push eax
call fcn.0050edcc
add esp, 4
test ebx, ebx
je 0x44c66f
push ebx
call fcn.0050edcc
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x44c687
cmp dword [ebp - 0x2c], 0
jbe 0x44c687
mov dword [ebp - 0x2c], 1
jmp 0x44c68e
xor ebx, ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x44c6cf
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44c6c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c80e
push edx
push ecx
call fcn.0050ed4e
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp dword [ebp - 0x2c], eax
je 0x44c7e4
mov ecx, dword [esi + 0x38]
add esi, 0x38
test ecx, ecx
je 0x44c702
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x44c714
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi], 0
push esi
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateILockBytesOnHGlobal]
mov eax, dword [esi]
test eax, eax
je 0x44c7e4
push edi
push 0
push 0
push dword [ebp - 0x3c]
push 0
push eax
call dword [sym.imp.ole32.dll_StgOpenStorageOnILockBytes]
jmp 0x44c7e4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44c748
mov eax, dword [esi]
push edi
push 0
push 0
push ecx
push 0
push eax
call dword [sym.imp.ole32.dll_StgOpenStorage]
cmp dword [edi], 0
mov ebx, eax
jne 0x44c7e4
cmp dword [esi + 0x2c], 0
jne 0x44c7ca
mov ecx, esi
call fcn.0044c290
test eax, eax
je 0x44c7ca
cmp ebx, 0x80030005
je 0x44c78b
cmp ebx, 0x80030020
je 0x44c78b
cmp ebx, 0x80030021
jne 0x44c7ca
xor ebx, ebx
nop dword [eax]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x44c7a5
mov eax, dword [esi]
push edi
push 0
push 0
push dword [ebp - 0x3c]
push 0
push eax
call dword [sym.imp.ole32.dll_StgOpenStorage]
mov eax, dword [edi]
test eax, eax
jne 0x44c7ca
inc ebx
cmp ebx, 5
jl 0x44c790
test eax, eax
je 0x44c4c0
cmp dword [edi], 0
jne 0x44c7e4
cmp dword [esi + 0x14], 8
jb 0x44c7d7
mov esi, dword [esi]
push edi
push 0
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.ole32.dll_StgCreateDocfile]
xor eax, eax
cmp dword [edi], eax
setne al
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.0050ed5c
mov esp, ebp
pop ebp
ret 4
call fcn.005978c6
call fcn.005978c6
int3