Function at 0x48f4b1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [0xa2d660]
test eax, eax
jne 0x48f4dc
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0045bb9e
mov dword [0xa2d660], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54e547
call fcn.0045ba1b
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0045c4c9
mov edx, eax
mov eax, dword [0xa2d660]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045bd05
call fcn.0048dffd
mov dword [0xa2d664], eax
mov edx, dword [0x6a3c7c]
mov eax, dword [0xa2d664]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add eax, edx
mov dword [0xa2d668], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x53
je 0x48f55c
cmp dword [ebp - 0x20], 0x73
jne 0x48f5d9
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x43
je 0x48f578
cmp dword [ebp - 0x20], 0x63
jne 0x48f5d9
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x52
je 0x48f594
cmp dword [ebp - 0x20], 0x72
jne 0x48f5d9
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4e
je 0x48f5b0
cmp dword [ebp - 0x20], 0x6e
jne 0x48f5d9
add dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x3a
jne 0x48f5d9
mov eax, dword [0xa2d668]
mov byte [eax + 0x70], 1
mov eax, dword [0xa2d664]
jmp 0x48fe7d
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x48f5ec
mov eax, dword [0xa2d668]
mov byte [eax + 9], 1
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
je 0x48f5ff
mov eax, dword [0xa2d668]
mov byte [eax + 0xa], 1
mov eax, dword [ebp + 0x10]
and eax, 1
test eax, eax
je 0x48f612
mov eax, dword [0xa2d668]
mov byte [eax + 0xb], 1
mov eax, dword [ebp + 0x10]
and eax, 2
test eax, eax
je 0x48f625
mov eax, dword [0xa2d668]
mov byte [eax + 0xc], 1
mov eax, dword [0xa2d668]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov edx, dword [0xa2d668]
mov eax, dword [0xa2d660]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0048e621
mov dword [0xa2d66c], eax
mov eax, dword [0xa2d66c]
test eax, eax
setne al
test al, al
je 0x48f683
mov eax, dword [0xa2d66c]
cmp eax, 0xffffffff
jne 0x48f683
mov eax, dword [0xa2d664]
mov dword [esp], eax
call fcn.0048e2fc
mov eax, 0xfffffff5
jmp 0x48fe7d
mov eax, dword [0x6a3c78]
mov edx, dword [0xa2d664]
shl edx, 2
add eax, edx
mov dword [0xa2d670], eax
mov dword [0xa2d66c], 0
mov eax, dword [ebp + 0xc]
and eax, 1
test eax, eax
je 0x48f6bb
mov eax, dword [0xa2d66c]
or eax, 0x80000000
mov dword [0xa2d66c], eax
mov eax, dword [ebp + 0xc]
and eax, 2
test eax, eax
je 0x48f6d4
mov eax, dword [0xa2d66c]
or eax, 0x40000000
mov dword [0xa2d66c], eax
mov dword [0xa2d674], 3
mov eax, dword [ebp + 0x10]
and eax, 1
test eax, eax
je 0x48f6f5
mov eax, dword [0xa2d674]
xor eax, 1
mov dword [0xa2d674], eax
mov eax, dword [ebp + 0x10]
and eax, 2
test eax, eax
je 0x48f70c
mov eax, dword [0xa2d674]
xor eax, 2
mov dword [0xa2d674], eax
mov eax, dword [0xa2d668]
movzx eax, byte [eax + 0x50]
test al, al
je 0x48fb4b
mov eax, dword [0xa2d678]
test eax, eax
jne 0x48f73f
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0045bb9e
mov dword [0xa2d678], eax
mov eax, dword [0xa2d668]
movzx eax, byte [eax + 0x50]
movzx eax, al
mov dword [esp], eax
call fcn.0045e1c0
mov ebx, eax
mov dword [esp], 0x54ea59
call fcn.0045b98a
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0045c4c9
mov edx, eax
mov eax, dword [0xa2d678]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045bd05
mov dword [esp + 4], 2
mov dword [esp], 0x54ea5c
call fcn.0045ba1b
mov edx, eax
mov eax, dword [0xa2d678]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045c4c9
mov edx, eax
mov eax, dword [0xa2d678]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045bd05
mov eax, dword [0xa2d678]
mov eax, dword [eax]
add eax, 2
mov byte [eax], 0x4d
mov ebx, dword [0xa2d670]
mov eax, dword [0xa2d66c]
mov edx, eax
mov eax, dword [0xa2d678]
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 [0xa2d670]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x48f839
mov eax, dword [0xa2d664]
mov dword [esp], eax
call fcn.0048e2fc
mov eax, 0xfffffff8
jmp 0x48fe7d
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0xa2d67c
call sub.msvcrt.dll_memset
mov dword [0xa2d67c], 0x1c
mov eax, dword [0xa2d670]
mov eax, dword [eax]
mov dword [esp + 4], 0xa2d67c
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 0x48f8af
mov eax, dword [0xa2d670]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa2d664]
mov dword [esp], eax
call fcn.0048e2fc
mov eax, 0xfffffff8
jmp 0x48fe7d
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov dword [esp], 0xa2d698
call sub.msvcrt.dll_memset
mov eax, dword [0xa2d668]
mov eax, dword [eax + 0x54]
mov dword [0xa2d680], eax
mov eax, dword [0xa2d668]
movzx eax, byte [eax + 0x5a]
movsx eax, al
mov dword [0xa2d66c], eax
mov eax, dword [0xa2d66c]
cmp eax, 0xa
jne 0x48f8fd
mov dword [0xa2d674], 0
mov eax, dword [0xa2d66c]
cmp eax, 0xf
jne 0x48f911
mov dword [0xa2d674], 1
mov eax, dword [0xa2d66c]
cmp eax, 0x14
jne 0x48f925
mov dword [0xa2d674], 2
mov eax, dword [0xa2d674]
mov byte [0xa2d690], al
mov eax, dword [0xa2d668]
movzx eax, byte [eax + 0x59]
mov byte [0xa2d68e], al
mov eax, dword [0xa2d668]
movzx eax, byte [eax + 0x58]
movsx eax, al
mov dword [0xa2d66c], eax
mov eax, dword [0xa2d66c]
test eax, eax
jne 0x48f961
mov dword [0xa2d674], 0
mov eax, dword [0xa2d66c]
cmp eax, 1
jne 0x48f975
mov dword [0xa2d674], 2
mov eax, dword [0xa2d66c]
cmp eax, 2
jne 0x48f989
mov dword [0xa2d674], 1
mov eax, dword [0xa2d66c]
cmp eax, 3
jne 0x48f99d
mov dword [0xa2d674], 4
mov eax, dword [0xa2d66c]
cmp eax, 4
jne 0x48f9b1
mov dword [0xa2d674], 3
mov eax, dword [0xa2d674]
mov byte [0xa2d68f], al
mov eax, dword [0xa2d674]
test eax, eax
jne 0x48f9d5
movzx eax, byte [0xa2d684]
and eax, 0xfffffffd
mov byte [0xa2d684], al
jmp 0x48f9e4
movzx eax, byte [0xa2d684]
or eax, 2
mov byte [0xa2d684], al
mov eax, dword [0xa2d668]
movzx eax, byte [eax + 0x5d]
test al, al
je 0x48fa00
movzx eax, byte [0xa2d685]
and eax, 0xffffffcf
mov byte [0xa2d685], al
mov eax, dword [0xa2d668]
movzx eax, byte [eax + 0x5b]
test al, al
jne 0x48fa1e
movzx eax, byte [0xa2d684]
or eax, 1
mov byte [0xa2d684], al
jmp 0x48fa2d
movzx eax, byte [0xa2d684]
and eax, 0xfffffffe
mov byte [0xa2d684], al
mov byte [0xa2d694], 0x1a
mov eax, dword [0xa2d670]
mov eax, dword [eax]
mov dword [esp + 4], 0xa2d67c
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 0x48fa84
mov eax, dword [0xa2d670]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa2d664]
mov dword [esp], eax
call fcn.0048e2fc
mov eax, 0xfffffff8
jmp 0x48fe7d
mov eax, dword [0xa2d668]
mov eax, dword [eax + 0x68]
test eax, eax
jne 0x48fab0
mov dword [0xa2d698], 0xffffffff
mov dword [0xa2d69c], 0
mov dword [0xa2d6a0], 0
jmp 0x48fad1
mov dword [0xa2d698], 0
mov dword [0xa2d69c], 0
mov eax, dword [0xa2d668]
mov eax, dword [eax + 0x68]
mov dword [0xa2d6a0], eax
mov dword [0xa2d6a4], 0
mov eax, dword [0xa2d668]
mov eax, dword [eax + 0x64]
mov dword [0xa2d6a8], eax
mov eax, dword [0xa2d670]
mov eax, dword [eax]
mov dword [esp + 4], 0xa2d698
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 0x48fb38
mov eax, dword [0xa2d670]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa2d664]
mov dword [esp], eax
call fcn.0048e2fc
mov eax, 0xfffffff8
jmp 0x48fe7d
mov eax, dword [0xa2d668]
mov byte [eax + 8], 1
mov eax, dword [0xa2d664]
jmp 0x48fe7d
mov dword [0xa2d6ac], 3
cmp dword [ebp + 0x14], 0
je 0x48fb65
mov dword [0xa2d6ac], 4
mov ebx, dword [0xa2d670]
mov eax, dword [0xa2d6ac]
mov dword [ebp - 0x2c], eax
mov eax, dword [0xa2d674]
mov edi, eax
mov eax, dword [0xa2d66c]
mov esi, eax
mov eax, dword [0xa2d660]
mov dword [esp], eax
call fcn.00450953
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov edx, dword [ebp - 0x2c]
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 [0xa2d670]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x48fced
cmp dword [ebp + 0x14], 3
jne 0x48fbff
mov dword [0xa2d66c], 0x80000000
mov eax, dword [0xa2d668]
mov byte [eax + 9], 1
mov eax, dword [0xa2d668]
mov byte [eax + 0xa], 0
add dword [ebp + 0x14], 1
jmp 0x48fb65
cmp dword [ebp + 0x14], 4
jne 0x48fc2a
mov dword [0xa2d66c], 0x40000000
mov eax, dword [0xa2d668]
mov byte [eax + 9], 0
mov eax, dword [0xa2d668]
mov byte [eax + 0xa], 1
add dword [ebp + 0x14], 1
jmp 0x48fb65
mov eax, dword [0xa2d664]
mov dword [esp], eax
call fcn.0048e2fc
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa2d6b0], eax
mov eax, dword [0xa2d6b0]
cmp eax, 3
jne 0x48fc57
mov eax, 0xfffffffa
jmp 0x48fe7d
mov eax, dword [0xa2d6b0]
cmp eax, 4
je 0x48fc75
mov eax, dword [0xa2d6b0]
cmp eax, 0x1d
je 0x48fc75
mov eax, dword [0xa2d6b0]
cmp eax, 0x1e
jne 0x48fc7f
mov eax, 0xfffffff7
jmp 0x48fe7d
mov eax, dword [0xa2d6b0]
cmp eax, 5
je 0x48fca7
mov eax, dword [0xa2d6b0]
cmp eax, 0x13
je 0x48fca7
mov eax, dword [0xa2d6b0]
cmp eax, 0x21
je 0x48fca7
mov eax, dword [0xa2d6b0]
cmp eax, 0x20
jne 0x48fcb1
mov eax, 0xfffffff9
jmp 0x48fe7d
mov eax, dword [0xa2d6b0]
cmp eax, 0xf
je 0x48fcc5
mov eax, dword [0xa2d6b0]
cmp eax, 0x15
jne 0x48fccf
mov eax, 0xfffffff8
jmp 0x48fe7d
mov eax, dword [0xa2d6b0]
cmp eax, 2
jne 0x48fce3
mov eax, 0xfffffffb
jmp 0x48fe7d
mov eax, 0xfffffffb
jmp 0x48fe7d
cmp dword [ebp + 0x14], 2
jne 0x48fe6f
mov eax, dword [0xa2d670]
mov eax, dword [eax]
mov dword [esp + 4], 0xa2d6b4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [0xa2d6b8], eax
mov eax, dword [0xa2d6b8]
test eax, eax
jne 0x48fd2e
mov eax, dword [0xa2d6b4]
test eax, eax
je 0x48fe6f
mov eax, dword [0xa2d670]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0xa2d6ac], 5
mov ebx, dword [0xa2d670]
mov eax, dword [0xa2d6ac]
mov dword [ebp - 0x30], eax
mov eax, dword [0xa2d674]
mov edi, eax
mov eax, dword [0xa2d66c]
mov esi, eax
mov eax, dword [0xa2d660]
mov dword [esp], eax
call fcn.00450953
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov edx, dword [ebp - 0x30]
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 [0xa2d670]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x48fe6f
mov eax, dword [0xa2d664]
mov dword [esp], eax
call fcn.0048e2fc
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa2d6b0], eax
mov eax, dword [0xa2d6b0]
cmp eax, 3
jne 0x48fde8
mov eax, 0xfffffffa
jmp 0x48fe7d
mov eax, dword [0xa2d6b0]
cmp eax, 4
je 0x48fe06
mov eax, dword [0xa2d6b0]
cmp eax, 0x1d
je 0x48fe06
mov eax, dword [0xa2d6b0]
cmp eax, 0x1e
jne 0x48fe0d
mov eax, 0xfffffff7
jmp 0x48fe7d
mov eax, dword [0xa2d6b0]
cmp eax, 5
je 0x48fe35
mov eax, dword [0xa2d6b0]
cmp eax, 0x13
je 0x48fe35
mov eax, dword [0xa2d6b0]
cmp eax, 0x21
je 0x48fe35
mov eax, dword [0xa2d6b0]
cmp eax, 0x20
jne 0x48fe3c
mov eax, 0xfffffff9
jmp 0x48fe7d
mov eax, dword [0xa2d6b0]
cmp eax, 0xf
je 0x48fe50
mov eax, dword [0xa2d6b0]
cmp eax, 0x15
jne 0x48fe57
mov eax, 0xfffffff8
jmp 0x48fe7d
mov eax, dword [0xa2d6b0]
cmp eax, 2
jne 0x48fe68
mov eax, 0xfffffffb
jmp 0x48fe7d
mov eax, 0xfffffffb
jmp 0x48fe7d
mov eax, dword [0xa2d668]
mov byte [eax + 8], 1
mov eax, dword [0xa2d664]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret