Function at 0x4483ca
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0xa8c250]
test eax, eax
jne 0x4483f5
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004163b3
mov dword [0xa8c250], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4f0683
call fcn.00416230
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00416cde
mov edx, eax
mov eax, dword [0xa8c250]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041651a
call fcn.00446f64
mov dword [0xa8c254], eax
mov edx, dword [0x64245c]
mov eax, dword [0xa8c254]
shl eax, 4
lea ecx, [eax*8]
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add eax, edx
mov dword [0xa8c258], eax
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x44846a
mov eax, dword [0xa8c258]
mov byte [eax + 9], 1
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
je 0x44847d
mov eax, dword [0xa8c258]
mov byte [eax + 0xa], 1
mov eax, dword [ebp + 0x10]
and eax, 1
test eax, eax
je 0x448490
mov eax, dword [0xa8c258]
mov byte [eax + 0xb], 1
mov eax, dword [ebp + 0x10]
and eax, 2
test eax, eax
je 0x4484a3
mov eax, dword [0xa8c258]
mov byte [eax + 0xc], 1
mov eax, dword [0xa8c258]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov edx, dword [0xa8c258]
mov eax, dword [0xa8c250]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0044753a
mov dword [0xa8c25c], eax
mov eax, dword [0xa8c25c]
test eax, eax
setne al
test al, al
je 0x448501
mov eax, dword [0xa8c25c]
cmp eax, 0xffffffff
jne 0x448501
mov eax, dword [0xa8c254]
mov dword [esp], eax
call fcn.00447245
mov eax, 0xfffffff5
jmp 0x448cfb
mov eax, dword [0x642458]
mov edx, dword [0xa8c254]
shl edx, 2
add eax, edx
mov dword [0xa8c260], eax
mov dword [0xa8c25c], 0
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x448539
mov eax, dword [0xa8c25c]
or eax, 0x80000000
mov dword [0xa8c25c], eax
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
je 0x448552
mov eax, dword [0xa8c25c]
or eax, 0x40000000
mov dword [0xa8c25c], eax
mov dword [0xa8c264], 3
mov eax, dword [ebp + 0x10]
and eax, 1
test eax, eax
je 0x448573
mov eax, dword [0xa8c264]
xor eax, 1
mov dword [0xa8c264], eax
mov eax, dword [ebp + 0x10]
and eax, 2
test eax, eax
je 0x44858a
mov eax, dword [0xa8c264]
xor eax, 2
mov dword [0xa8c264], eax
mov eax, dword [0xa8c258]
movzx eax, byte [eax + 0x50]
test al, al
je 0x4489c9
mov eax, dword [0xa8c268]
test eax, eax
jne 0x4485bd
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004163b3
mov dword [0xa8c268], eax
mov eax, dword [0xa8c258]
movzx eax, byte [eax + 0x50]
movzx eax, al
mov dword [esp], eax
call fcn.0041883b
mov ebx, eax
mov dword [esp], 0x4f098f
call fcn.0041619f
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00416cde
mov edx, eax
mov eax, dword [0xa8c268]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041651a
mov dword [esp + 4], 2
mov dword [esp], 0x4f0992
call fcn.00416230
mov edx, eax
mov eax, dword [0xa8c268]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00416cde
mov edx, eax
mov eax, dword [0xa8c268]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041651a
mov eax, dword [0xa8c268]
mov eax, dword [eax]
add eax, 2
mov byte [eax], 0x4d
mov ebx, dword [0xa8c260]
mov eax, dword [0xa8c25c]
mov edx, eax
mov eax, dword [0xa8c268]
mov eax, dword [eax]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebx], eax
mov eax, dword [0xa8c260]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x4486b7
mov eax, dword [0xa8c254]
mov dword [esp], eax
call fcn.00447245
mov eax, 0xfffffff8
jmp 0x448cfb
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0xa8c26c
call sub.msvcrt.dll_memset
mov dword [0xa8c26c], 0x1c
mov eax, dword [0xa8c260]
mov eax, dword [eax]
mov dword [esp + 4], 0xa8c26c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCommState]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x44872d
mov eax, dword [0xa8c260]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa8c254]
mov dword [esp], eax
call fcn.00447245
mov eax, 0xfffffff8
jmp 0x448cfb
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov dword [esp], 0xa8c288
call sub.msvcrt.dll_memset
mov eax, dword [0xa8c258]
mov eax, dword [eax + 0x54]
mov dword [0xa8c270], eax
mov eax, dword [0xa8c258]
movzx eax, byte [eax + 0x5a]
movsx eax, al
mov dword [0xa8c25c], eax
mov eax, dword [0xa8c25c]
cmp eax, 0xa
jne 0x44877b
mov dword [0xa8c264], 0
mov eax, dword [0xa8c25c]
cmp eax, 0xf
jne 0x44878f
mov dword [0xa8c264], 1
mov eax, dword [0xa8c25c]
cmp eax, 0x14
jne 0x4487a3
mov dword [0xa8c264], 2
mov eax, dword [0xa8c264]
mov byte [0xa8c280], al
mov eax, dword [0xa8c258]
movzx eax, byte [eax + 0x59]
mov byte [0xa8c27e], al
mov eax, dword [0xa8c258]
movzx eax, byte [eax + 0x58]
movsx eax, al
mov dword [0xa8c25c], eax
mov eax, dword [0xa8c25c]
test eax, eax
jne 0x4487df
mov dword [0xa8c264], 0
mov eax, dword [0xa8c25c]
cmp eax, 1
jne 0x4487f3
mov dword [0xa8c264], 2
mov eax, dword [0xa8c25c]
cmp eax, 2
jne 0x448807
mov dword [0xa8c264], 1
mov eax, dword [0xa8c25c]
cmp eax, 3
jne 0x44881b
mov dword [0xa8c264], 4
mov eax, dword [0xa8c25c]
cmp eax, 4
jne 0x44882f
mov dword [0xa8c264], 3
mov eax, dword [0xa8c264]
mov byte [0xa8c27f], al
mov eax, dword [0xa8c264]
test eax, eax
jne 0x448853
movzx eax, byte [0xa8c274]
and eax, 0xfffffffd
mov byte [0xa8c274], al
jmp 0x448862
movzx eax, byte [0xa8c274]
or eax, 2
mov byte [0xa8c274], al
mov eax, dword [0xa8c258]
movzx eax, byte [eax + 0x5d]
test al, al
je 0x44887e
movzx eax, byte [0xa8c275]
and eax, 0xffffffcf
mov byte [0xa8c275], al
mov eax, dword [0xa8c258]
movzx eax, byte [eax + 0x5b]
test al, al
jne 0x44889c
movzx eax, byte [0xa8c274]
or eax, 1
mov byte [0xa8c274], al
jmp 0x4488ab
movzx eax, byte [0xa8c274]
and eax, 0xfffffffe
mov byte [0xa8c274], al
mov byte [0xa8c284], 0x1a
mov eax, dword [0xa8c260]
mov eax, dword [eax]
mov dword [esp + 4], 0xa8c26c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetCommState]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x448902
mov eax, dword [0xa8c260]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa8c254]
mov dword [esp], eax
call fcn.00447245
mov eax, 0xfffffff8
jmp 0x448cfb
mov eax, dword [0xa8c258]
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x44892e
mov dword [0xa8c288], 0xffffffff
mov dword [0xa8c28c], 0
mov dword [0xa8c290], 0
jmp 0x44894f
mov dword [0xa8c288], 0
mov dword [0xa8c28c], 0
mov eax, dword [0xa8c258]
mov eax, dword [eax + 0x68]
mov dword [0xa8c290], eax
mov dword [0xa8c294], 0
mov eax, dword [0xa8c258]
mov eax, dword [eax + 0x64]
mov dword [0xa8c298], eax
mov eax, dword [0xa8c260]
mov eax, dword [eax]
mov dword [esp + 4], 0xa8c288
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
je 0x4489b6
mov eax, dword [0xa8c260]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa8c254]
mov dword [esp], eax
call fcn.00447245
mov eax, 0xfffffff8
jmp 0x448cfb
mov eax, dword [0xa8c258]
mov byte [eax + 8], 1
mov eax, dword [0xa8c254]
jmp 0x448cfb
mov dword [0xa8c29c], 3
cmp dword [ebp + 0x14], 0
je 0x4489e3
mov dword [0xa8c29c], 4
mov ebx, dword [0xa8c260]
mov eax, dword [0xa8c29c]
mov dword [ebp - 0x1c], eax
mov eax, dword [0xa8c264]
mov edi, eax
mov eax, dword [0xa8c25c]
mov esi, eax
mov eax, dword [0xa8c250]
mov dword [esp], eax
call fcn.0040b7e9
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebx], eax
mov eax, dword [0xa8c260]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x448b6b
cmp dword [ebp + 0x14], 3
jne 0x448a7d
mov dword [0xa8c25c], 0x80000000
mov eax, dword [0xa8c258]
mov byte [eax + 9], 1
mov eax, dword [0xa8c258]
mov byte [eax + 0xa], 0
add dword [ebp + 0x14], 1
jmp 0x4489e3
cmp dword [ebp + 0x14], 4
jne 0x448aa8
mov dword [0xa8c25c], 0x40000000
mov eax, dword [0xa8c258]
mov byte [eax + 9], 0
mov eax, dword [0xa8c258]
mov byte [eax + 0xa], 1
add dword [ebp + 0x14], 1
jmp 0x4489e3
mov eax, dword [0xa8c254]
mov dword [esp], eax
call fcn.00447245
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa8c2a0], eax
mov eax, dword [0xa8c2a0]
cmp eax, 3
jne 0x448ad5
mov eax, 0xfffffffa
jmp 0x448cfb
mov eax, dword [0xa8c2a0]
cmp eax, 4
je 0x448af3
mov eax, dword [0xa8c2a0]
cmp eax, 0x1d
je 0x448af3
mov eax, dword [0xa8c2a0]
cmp eax, 0x1e
jne 0x448afd
mov eax, 0xfffffff7
jmp 0x448cfb
mov eax, dword [0xa8c2a0]
cmp eax, 5
je 0x448b25
mov eax, dword [0xa8c2a0]
cmp eax, 0x13
je 0x448b25
mov eax, dword [0xa8c2a0]
cmp eax, 0x21
je 0x448b25
mov eax, dword [0xa8c2a0]
cmp eax, 0x20
jne 0x448b2f
mov eax, 0xfffffff9
jmp 0x448cfb
mov eax, dword [0xa8c2a0]
cmp eax, 0xf
je 0x448b43
mov eax, dword [0xa8c2a0]
cmp eax, 0x15
jne 0x448b4d
mov eax, 0xfffffff8
jmp 0x448cfb
mov eax, dword [0xa8c2a0]
cmp eax, 2
jne 0x448b61
mov eax, 0xfffffffb
jmp 0x448cfb
mov eax, 0xfffffffb
jmp 0x448cfb
cmp dword [ebp + 0x14], 2
jne 0x448ced
mov eax, dword [0xa8c260]
mov eax, dword [eax]
mov dword [esp + 4], 0xa8c2a4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [0xa8c2a8], eax
mov eax, dword [0xa8c2a8]
test eax, eax
jne 0x448bac
mov eax, dword [0xa8c2a4]
test eax, eax
je 0x448ced
mov eax, dword [0xa8c260]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa8c29c], 5
mov ebx, dword [0xa8c260]
mov eax, dword [0xa8c29c]
mov dword [ebp - 0x20], eax
mov eax, dword [0xa8c264]
mov edi, eax
mov eax, dword [0xa8c25c]
mov esi, eax
mov eax, dword [0xa8c250]
mov dword [esp], eax
call fcn.0040b7e9
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebx], eax
mov eax, dword [0xa8c260]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x448ced
mov eax, dword [0xa8c254]
mov dword [esp], eax
call fcn.00447245
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa8c2a0], eax
mov eax, dword [0xa8c2a0]
cmp eax, 3
jne 0x448c66
mov eax, 0xfffffffa
jmp 0x448cfb
mov eax, dword [0xa8c2a0]
cmp eax, 4
je 0x448c84
mov eax, dword [0xa8c2a0]
cmp eax, 0x1d
je 0x448c84
mov eax, dword [0xa8c2a0]
cmp eax, 0x1e
jne 0x448c8b
mov eax, 0xfffffff7
jmp 0x448cfb
mov eax, dword [0xa8c2a0]
cmp eax, 5
je 0x448cb3
mov eax, dword [0xa8c2a0]
cmp eax, 0x13
je 0x448cb3
mov eax, dword [0xa8c2a0]
cmp eax, 0x21
je 0x448cb3
mov eax, dword [0xa8c2a0]
cmp eax, 0x20
jne 0x448cba
mov eax, 0xfffffff9
jmp 0x448cfb
mov eax, dword [0xa8c2a0]
cmp eax, 0xf
je 0x448cce
mov eax, dword [0xa8c2a0]
cmp eax, 0x15
jne 0x448cd5
mov eax, 0xfffffff8
jmp 0x448cfb
mov eax, dword [0xa8c2a0]
cmp eax, 2
jne 0x448ce6
mov eax, 0xfffffffb
jmp 0x448cfb
mov eax, 0xfffffffb
jmp 0x448cfb
mov eax, dword [0xa8c258]
mov byte [eax + 8], 1
mov eax, dword [0xa8c254]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret