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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xf
push 0
push 0
dec ecx
jne 0x44c1dc
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x44c7fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
push 0
push 0x64
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2d0]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x64
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x18]
call sub.rtl160.bpl__System__LStrClr_qqrpv
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x44c2e6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x44c2e6
inc esi
xor ebx, ebx
push dword [ebp - 0x18]
push 0x44c81c
push 0x44c82c
lea eax, [ebp - 0x30]
mov edx, dword [0x535d7c]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
push dword [ebp - 0x30]
push 0x44c81c
push 0x44c83c
lea ecx, [ebp - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0x18]
push dword [ebp - 0x34]
push 0x44c870
push 0x44c81c
push 0x44c81c
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0x18]
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x38]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edi, dword [eax]
call dword [edi + 0x24]
push dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov edx, 0xb
call sub.rtl160.bpl__System__LStrCatN_qqrv
inc ebx
dec esi
jne 0x44c25e
mov eax, dword [ebp - 0x18]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
add eax, 0x64
cdq
push edx
push eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2e8]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
call sub.rtl160.bpl__System__DynArrayHigh_qqrpxv
mov esi, eax
test esi, esi
jl 0x44c3d6
inc esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebx*4]
call fcn.0044a3e4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jle 0x44c3ce
lea eax, [ebp - 0x44]
mov edx, dword [0x535d7c]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov eax, dword [ebp - 0x44]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov edi, eax
mov eax, dword [ebp - 0x20]
add eax, 0x66
add edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ebx*4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
add edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ebx*4]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
add edi, eax
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x20]
test eax, eax
jns 0x44c3a1
add eax, 0xf
sar eax, 4
cdq
push edx
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2f0]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x24], eax
inc ebx
dec esi
jne 0x44c338
push 0
push 0x64
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push 0
push 0x1f4
lea edx, [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2f8]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call sub.rtl160.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call sub.rtl160.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
lea eax, [ebp - 0xc]
call fcn.0044c108
mov eax, dword [ebp - 0xc]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov esi, eax
test esi, esi
jle 0x44c48a
mov ebx, 1
mov eax, dword [ebp - 0xc]
cmp byte [eax + ebx - 1], 0x2f
jne 0x44c486
lea eax, [ebp - 8]
push eax
mov esi, ebx
dec esi
mov ecx, esi
mov edx, 1
mov eax, dword [ebp - 0xc]
call sub.rtl160.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov ecx, esi
lea eax, [ebp - 0xc]
mov edx, 1
call sub.rtl160.bpl__System__LStrDelete_qqrr27System__AnsiStringT_us_i0__ii
jmp 0x44c48a
inc ebx
dec esi
jne 0x44c455
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 4]
call fcn.0044c028
cmp dword [ebp - 4], 0
je 0x44c4a8
lea eax, [ebp - 4]
call fcn.0044c108
jmp 0x44c4b3
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
lea eax, [ebp - 0x14]
push eax
mov cl, 0x3a
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040c10c
cmp dword [ebp - 0x14], 0
je 0x44c512
mov eax, dword [ebp - 0x14]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
mov eax, dword [ebp - 0x14]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
mov edx, eax
xor eax, eax
pop ecx
call fcn.0040be04
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44c512
lea eax, [ebp - 0x50]
push eax
mov cl, 0x3a
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040c10c
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp + 8]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0044a6c0
pop ecx
test al, al
je 0x44c7d5
push 0x44c880
push dword [ebp - 0xc]
push 0x44c894
push 0x44c81c
push 0x44c8ac
push dword [ebp - 8]
push 0x44c8c0
lea eax, [ebp - 0x54]
push eax
mov cl, 0x30
mov edx, 1
mov eax, esi
call fcn.0040b980
push dword [ebp - 0x54]
push 0x44c81c
push 0x44c8d0
push 0x44c81c
push 0x44c8f0
push 0x44c81c
push 0x44c910
push 0x44c81c
push 0x44c938
lea eax, [ebp - 0x58]
mov edx, dword [0x535d7c]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
push dword [ebp - 0x58]
push 0x44c81c
push 0x44c974
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
mov edx, dword [0x535d7c]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov eax, dword [ebp - 0x60]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x24]
add edx, 4
add eax, edx
add eax, 2
mov cl, 0x30
mov edx, 1
call fcn.0040b864
push dword [ebp - 0x5c]
push 0x44c81c
lea eax, [ebp - 0x10]
mov edx, 0x15
call sub.rtl160.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x44c627
push dword [ebp - 0x10]
push 0x44c994
lea ecx, [ebp - 0x64]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
call fcn.004480bc
push dword [ebp - 0x64]
push 0x44c81c
lea eax, [ebp - 0x10]
mov edx, 4
call sub.rtl160.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
jne 0x44c639
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x44c67f
push dword [ebp - 0x10]
push 0x44c9a8
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
push 0x44c8c0
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
lea eax, [ebp - 0x6c]
mov edx, 3
call sub.rtl160.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.0041c280
push dword [ebp - 0x68]
push 0x44c81c
lea eax, [ebp - 0x10]
mov edx, 4
call sub.rtl160.bpl__System__LStrCatN_qqrv
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call sub.rtl160.bpl__System__LStrCat_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
call fcn.0044a34c
test al, al
je 0x44c7cc
mov byte [ebp - 0x19], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
call sub.rtl160.bpl__System__DynArrayHigh_qqrpxv
mov esi, eax
test esi, esi
jl 0x44c758
inc esi
xor ebx, ebx
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x44c6eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ebx*4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x44c720
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
je 0x44c750
lea eax, [ebp - 0x70]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x2c]
mov edx, dword [edx + ebx*4]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x70]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x44c750
push ebp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + ebx*4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax + ebx*4]
mov eax, dword [ebp - 0x28]
call fcn.0044bd58
pop ecx
test al, al
jne 0x44c750
mov byte [ebp - 0x19], 0
jmp 0x44c758
inc ebx
dec esi
jne 0x44c6c6
push 0x44c9cc
lea eax, [ebp - 0x78]
mov edx, dword [0x535d7c]
mov ecx, 0
call sub.rtl160.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
push dword [ebp - 0x78]
push 0x44c82c
push 0x44c81c
lea eax, [ebp - 0x74]
mov edx, 4
call sub.rtl160.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x28]
call fcn.0044a34c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
cmp byte [ebp - 0x19], 0
je 0x44c7b6
push ebp
mov eax, dword [ebp - 0x28]
call fcn.0044bbb8
pop ecx
test al, al
jne 0x44c7ba
xor eax, eax
jmp 0x44c7bc
mov al, 1
mov byte [ebp - 0x19], al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 0x28]
push eax
call sub.wsock32.dll_closesocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c804
lea eax, [ebp - 0x78]
mov edx, 0x14
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x18]
mov edx, 6
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret