Function at 0x42a780
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4a877d
push eax
mov eax, 0x1035c
mov dword fs:[0], esp
call fcn.004a5b80
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x24]
mov dword [esp + 0x10374], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x10374], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x10374], 2
call sub.MFC42.DLL_CString::CString_1
mov ebx, dword [esi + 0xac]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov byte [esp + 0x10374], 3
mov dword [esp + 0x38], ebx
mov cl, byte [eax + 0xfc]
and cl, 0x10
je 0x42a831
mov edx, dword [eax + 0x18c]
test edx, edx
jne 0x42a831
mov ebp, dword [eax + 0x180]
mov ecx, dword [eax + 0x184]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], ecx
jmp 0x42a860
test cl, cl
je 0x42a856
cmp dword [eax + 0x18c], 1
jne 0x42a856
mov ebp, dword [eax + 0x180]
mov edx, dword [eax + 0x184]
shl ebp, 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], edx
jmp 0x42a860
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], ebp
mov ecx, dword [eax + 0x170]
add eax, 0x108
shl ecx, 0xb
mov dword [esp + 0x10], ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004a5776
mov eax, dword [esi + 8]
lea ecx, [esp + 0x2c]
add eax, 0x10c
push eax
call fcn.004a5776
mov ecx, dword [esi + 8]
add ecx, 0x110
push ecx
lea ecx, [esp + 0x28]
call fcn.004a5776
mov edx, dword [esi + 8]
lea ecx, [esp + 0x20]
add edx, 0x114
push edx
call fcn.004a5776
mov eax, dword [esp + 0x28]
mov edi, 0x4e5a9c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42a8e1
test cl, cl
je 0x42a8dd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42a8e1
add eax, 2
add edi, 2
test cl, cl
jne 0x42a8bd
xor eax, eax
jmp 0x42a8e6
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
mov edi, 0x4e5a9c
test eax, eax
mov eax, dword [esp + 0x2c]
setne cl
mov dword [esp + 0x48], ecx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42a91e
test cl, cl
je 0x42a91a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42a91e
add eax, 2
add edi, 2
test cl, cl
jne 0x42a8fa
xor eax, eax
jmp 0x42a923
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
mov edi, 0x4e5a9c
test eax, eax
mov eax, dword [esp + 0x24]
setne cl
mov dword [esp + 0x40], ecx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42a95b
test cl, cl
je 0x42a957
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42a95b
add eax, 2
add edi, 2
test cl, cl
jne 0x42a937
xor eax, eax
jmp 0x42a960
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
mov edi, 0x4e5a9c
test eax, eax
mov eax, dword [esp + 0x20]
setne cl
mov dword [esp + 0x3c], ecx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42a998
test cl, cl
je 0x42a994
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42a998
add eax, 2
add edi, 2
test cl, cl
jne 0x42a974
xor eax, eax
jmp 0x42a99d
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
mov eax, dword [esi + 8]
setne cl
mov dword [esp + 0x34], ecx
mov cl, byte [eax + 0xfc]
test cl, 4
je 0x42a9f7
mov ecx, dword [eax + 0x160]
test ecx, ecx
je 0x42a9c7
shl ecx, 0xb
mov ebp, ecx
jmp 0x42a9f3
push ecx
add eax, 0x124
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.004a57ee
call fcn.004108b0
add esp, 4
mov ecx, 9
call fcn.004a5d80
mov ebp, eax
add ebp, 0x1000
mov dword [esp + 0x14], ebp
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x100]
test ecx, ecx
je 0x42abe5
test byte [eax + 0xfc], 1
je 0x42abe5
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x10374], 4
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x44]
mov byte [esp + 0x10374], 5
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [0x4e60d8]
lea eax, [esp + 0x18]
push edx
push str._sAP
push eax
mov byte [esp + 0x10380], 6
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004a57ee
call fcn.004108b0
add esp, 4
mov ecx, 9
call fcn.004a5d80
add eax, 0x1000
push str._securelock.exe
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x81
push 3
push 0
push 1
push 0x80000000
push eax
call edi
lea ecx, [esp + 0x1c]
mov ebp, eax
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x18]
push str.iStar.exe
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push 0x81
push 3
push 0
push 1
push 0x80000000
push eax
call edi
lea ecx, [esp + 0x1c]
mov edi, eax
call sub.MFC42.DLL_CString::CString
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebp, 0xffffffff
jne 0x42ab13
mov dword [esp + 0x1c], 0x135c
jmp 0x42ab1f
push 0
push ebp
call ebx
shr eax, 9
mov dword [esp + 0x1c], eax
cmp edi, 0xffffffff
jne 0x42ab2b
mov ebx, 0x47a
jmp 0x42ab35
push 0
push edi
call ebx
mov ebx, eax
shr ebx, 9
mov ecx, dword [0x4e60d8]
lea edx, [esp + 0x44]
push ecx
push str._sAP_securelock.exe
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x50]
add esp, 0xc
lea ecx, [esp + 0x4c]
push 0
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x42ab68
mov ecx, dword [esp + 0x1c]
add ebx, ecx
mov eax, dword [esp + 0x14]
sub eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
cmp eax, 0x3e8000
jb 0x42ab94
lea edx, [eax + eax]
mov eax, 0x10624dd3
mul edx
mov eax, dword [esp + 0x14]
shr edx, 6
add eax, edx
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, 0xffffffff
je 0x42aba2
push ebp
call ebx
cmp edi, 0xffffffff
je 0x42abaa
push edi
call ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x10374], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x10374], 4
call fcn.004a5a8e
lea ecx, [esp + 0x18]
mov byte [esp + 0x10374], 3
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add eax, ecx
sub ebx, eax
sub ebx, ebp
mov ebp, dword [esi + 8]
mov edi, ebx
cmp byte [ebp + 0xfd], 1
jne 0x42ac03
jmp 0x42ac70
mov eax, dword [ebp + 0x15c]
test eax, eax
je 0x42ac1a
shl eax, 0xb
mov ebx, edi
mov dword [esp + 0x18], eax
sub ebx, eax
jmp 0x42ac43
mov eax, dword [ebp + 0x104]
push 0
cdq
push edi
push edx
push eax
call fcn.004a5da0
push 0
push 0x3e8
push edx
push eax
call fcn.004a5e00
mov ebx, eax
mov eax, edi
sub eax, ebx
mov dword [esp + 0x18], eax
mov al, byte [ebp + 0x141]
test al, al
je 0x42ac70
cmp al, 1
jne 0x42ac62
lea edx, [edi - 0xb40]
mov ebx, 0xb40
mov dword [esp + 0x18], edx
jmp 0x42ac70
mov dword [esp + 0x18], 0xb40
lea ebx, [edi - 0xb40]
test byte [ebp + 0xfc], 0x10
je 0x42adfb
lea eax, [esp + 0x68]
mov ecx, dword [esi + 0x1c]
push eax
push 0x200
push 0
push 0
push 0x80
push 0
push 0x80
push 0xfa
push ecx
call fcn.0048fc90
add esp, 0x24
test eax, eax
jne 0x42acc3
lea edx, [esp + 0x10]
push 0x4d8340
push edx
mov dword [esp + 0x18], 0x91a00
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 8]
cmp dword [eax + 0x18c], 1
jne 0x42ad06
mov eax, dword [eax + 0x190]
push 1
push 1
push edi
push eax
mov eax, dword [esi + 0x1c]
push eax
call fcn.004923f0
add esp, 0x14
test eax, eax
je 0x42adfb
lea ecx, [esp + 0x10]
push 0x4d8340
push ecx
mov dword [esp + 0x18], 0x91b00
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [eax + 0x150]
test ecx, ecx
je 0x42ad7d
mov edx, dword [eax + 0x154]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x42ad7d
mov eax, edx
lea ecx, [esp + 0x268]
push eax
push 0x4df2f8
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esi + 8]
xor edx, edx
mov dl, byte [eax + 0x1fd]
mov ecx, dword [eax + 0x178]
mov eax, dword [eax + 0x188]
push edx
lea edx, [esp + 0x278]
push eax
mov eax, dword [esi + 0x1c]
push edx
push edi
push ecx
push eax
call fcn.0049cd90
add esp, 0x24
test eax, eax
je 0x42adbc
lea ecx, [esp + 0x10]
push 0x4d8340
push ecx
mov dword [esp + 0x18], 0x91b00
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [eax + 0x178]
xor edx, edx
mov dl, byte [eax + 0x1fd]
mov eax, dword [eax + 0x188]
push edx
push eax
push edi
push ecx
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.004923f0
add esp, 0x14
test eax, eax
je 0x42adbc
lea edx, [esp + 0x10]
push 0x4d8340
push edx
mov dword [esp + 0x18], 0x91b00
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 0x1c]
push eax
call fcn.0048f710
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x14]
push edx
mov eax, dword [ecx + 0x17c]
push eax
mov eax, dword [esi + 0x1c]
push eax
call fcn.004926c0
add esp, 0x10
test eax, eax
je 0x42adfb
lea ecx, [esp + 0x10]
push 0x4d8340
push ecx
mov dword [esp + 0x18], 0x91c00
call sub.MSVCRT.dll__CxxThrowException
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x36d]
mov byte [esp + 0x36c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x100]
mov dl, byte [eax + 0xfc]
test ecx, ecx
mov byte [esp + 0x10], dl
je 0x42ae32
mov byte [esp + 0x10], 8
mov eax, dword [esp + 0x10]
and eax, 0x3f
cmp eax, 4
je 0x42af96
cmp eax, 8
jne 0x42b057
lea eax, [esp + 0x68]
mov ecx, dword [esi + 0x1c]
push eax
push 0x200
push 0
push 0
push 0x10
push 0
push 0x80
push 0xfa
push ecx
call fcn.0048fc90
add esp, 0x24
test eax, eax
jne 0x42ae8e
lea edx, [esp + 0x10]
push 0x4d8340
push edx
mov dword [esp + 0x18], 0x91a00
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 8]
push 0
mov cl, byte [eax + 0xfd]
cmp cl, 1
mov ecx, dword [eax + 0x200]
push ecx
push 0
jne 0x42aecd
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x50]
push edx
xor edx, edx
mov dl, byte [eax + 0x1fd]
mov eax, dword [esi + 0x1c]
push ecx
push edx
push ebx
push 0
push eax
jmp 0x42aef5
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x48]
push edx
xor edx, edx
mov dl, byte [eax + 0x1fd]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push 0
push ecx
call fcn.0049c240
add esp, 0x2c
test eax, eax
je 0x42af18
lea edx, [esp + 0x38]
push 0x4d8340
push edx
mov dword [esp + 0x40], 0x91f00
call sub.MSVCRT.dll__CxxThrowException
lea eax, [esp + 0x68]
mov ecx, dword [esi + 0x1c]
push eax
push 0x200
push 0
push 0
push 0x20
push 0
push 0x80
push 0xfa
push ecx
call fcn.0048fc90
add esp, 0x24
test eax, eax
jne 0x42b057
lea ecx, [esp + 0x20]
mov byte [esp + 0x10374], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x10374], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x10374], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x10374], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x42b122
lea edx, [esp + 0x68]
mov eax, dword [esi + 0x1c]
push edx
push 0x200
push 0
push 0
push 8
push 0
push 0x80
push 0xfa
push eax
call fcn.0048fc90
add esp, 0x24
test eax, eax
jne 0x42afd9
lea ecx, [esp + 0x1c]
push 0x4d8340
push ecx
mov dword [esp + 0x24], 0x91a00
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
push 0
mov edx, dword [eax + 0x200]
push edx
mov edx, dword [esp + 0x48]
push 0
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x48]
push ecx
xor ecx, ecx
push edx
mov cl, byte [eax + 0x1fd]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0x1c]
push ecx
push edx
push 0
push eax
call fcn.0049c240
add esp, 0x2c
test eax, eax
je 0x42b032
lea ecx, [esp + 0x30]
push 0x4d8340
push ecx
mov dword [esp + 0x38], 0x91f00
call sub.MSVCRT.dll__CxxThrowException
lea edx, [esp + 0x68]
mov eax, dword [esi + 0x1c]
push edx
push 0x200
push 0
push 0
push 0x20
push 0
push 0x80
push 0xfa
push eax
jmp 0x42af38
mov ebp, dword [esi + 8]
mov edi, 0x4e5a9c
mov eax, dword [ebp + 0x128]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x42b089
test cl, cl
je 0x42b085
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x42b089
add eax, 2
add edi, 2
test cl, cl
jne 0x42b065
xor eax, eax
jmp 0x42b08e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42b13b
mov eax, dword [esi + 0x1c]
push eax
call fcn.0048f710
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x1c]
mov eax, dword [ecx + 0x128]
push eax
push edx
call fcn.0049d0c0
add esp, 0xc
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x68]
push edx
push 0x96
push eax
call fcn.0048fab0
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x10374], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x10374], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x10374], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x10374], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x1036c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10368
ret
mov al, byte [ebp + 0xfd]
cmp al, 1
jne 0x42b1a2
mov eax, dword [ebp + 0x200]
mov edx, dword [esp + 0x28]
xor ecx, ecx
push 0
mov cl, byte [ebp + 0x1fc]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x4c]
push eax
xor eax, eax
push ecx
mov al, byte [ebp + 0x1fd]
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ebx
push 0
push ecx
call fcn.0049c240
add esp, 0x2c
test eax, eax
je 0x42b0b5
lea edx, [esp + 0x10]
push 0x4d8340
push edx
mov dword [esp + 0x18], 0x91f00
call sub.MSVCRT.dll__CxxThrowException
cmp al, 2
jne 0x42b0b5
lea eax, [esp + 0x68]
mov ecx, dword [esi + 0x1c]
push eax
push 0x200
push 0
push 0
push 0x80
push 0
push 0x80
push 0xfa
push ecx
call fcn.0048fc90
add esp, 0x24
test eax, eax
jne 0x42b1f0
lea edx, [esp + 0x10]
push 0x4d8340
push edx
mov dword [esp + 0x18], 0x91a00
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 8]
xor edx, edx
push 0
mov ecx, dword [eax + 0x200]
mov dl, byte [eax + 0x1fc]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x50]
push ecx
xor ecx, ecx
mov cl, byte [eax + 0x1fd]
push edx
mov edx, dword [esi + 0x1c]
push ecx
push ebx
push 0
push edx
call fcn.0049c240
add esp, 0x2c
test eax, eax
je 0x42b24c
lea eax, [esp + 0x10]
push 0x4d8340
push eax
mov dword [esp + 0x18], 0x91f00
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [esp + 0x18]
test edi, edi
jbe 0x42b0b5
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x36c]
lea edx, [ebx - 0x100]
push ecx
push edx
push 0x80
push eax
call fcn.0048f970
add esp, 0x10
test eax, eax
je 0x42b300
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x36c]
lea edx, [ebx - 0x80]
push ecx
push edx
push 0x80
push eax
call fcn.0048f970
add esp, 0x10
test eax, eax
je 0x42b300
mov eax, dword [esi + 8]
xor edx, edx
push 0
mov ecx, dword [eax + 0x200]
mov dl, byte [eax + 0x1fc]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x48]
push ecx
xor ecx, ecx
mov cl, byte [eax + 0x1fd]
push edx
mov edx, dword [esi + 0x1c]
push ecx
push edi
push ebx
push edx
call fcn.0049c240
add esp, 0x2c
test eax, eax
je 0x42b0b5
lea eax, [esp + 0x34]
push 0x4d8340
push eax
mov dword [esp + 0x3c], 0x91f00
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [esp + 0x10]
push 0x4d8340
push ecx
mov dword [esp + 0x18], 0x91d00
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop
nop
nop
nop