Function at 0x10012e70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070529
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov eax, 0x10085f68
mov byte [ebp - 4], 1
test eax, eax
je 0x100136e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1006e670
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push 0x10085f68
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10012ef9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10012eeb
call esi
jmp 0x10012f05
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x10012f05
push 0x17
push ebx
push edi
lea ecx, [ebp - 0x1c]
call fcn.10015b70
cmp eax, ebx
jl 0x100136e8
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x10012f21
push 0x80004003
call fcn.1006e336
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ebx
push eax
mov esi, eax
call dword [ecx + 0xfc]
cmp eax, ebx
jge 0x10012f3d
push 0x10085f58
push esi
push eax
call fcn.1006e344
mov edi, dword [ebp + 8]
mov word [ebp - 0x54], 8
push edi
call fcn.1006e3e3
cmp eax, ebx
mov dword [ebp - 0x4c], eax
jne 0x10012f61
cmp edi, ebx
je 0x10012f61
push 0x8007000e
call fcn.1006e336
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x10012f79
push 0x80004003
call fcn.1006e336
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x54]
lea ecx, [ebp + 0xa]
push ecx
mov edx, dword [eax]
sub esp, 0x10
mov esi, eax
mov ecx, esp
push eax
mov dword [ecx], ebx
mov ebx, dword [ebp - 0x50]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp - 0x4c]
mov dword [ecx + 8], ebx
mov ebx, dword [ebp - 0x48]
mov dword [ecx + 0xc], ebx
call dword [edx + 0xe8]
test eax, eax
jge 0x10012fb4
push 0x10085f58
push esi
push eax
call fcn.1006e344
cmp word [ebp + 0xa], 0
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 1
sete bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x10012fd4
push eax
call fcn.1006e336
test bl, bl
je 0x1001315e
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
mov byte [ebp - 4], 3
je 0x100136e8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.1003bfe0
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
setne cl
mov byte [ebp - 0x4c], cl
lea edx, [ebp - 0x3c]
push 0
push edx
push esi
push eax
push ebx
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001321b
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x4c]
mov byte [eax + esi], 0
call fcn.10015560
push ecx
mov esi, eax
mov dword [ebp - 0x38], esp
mov edi, esp
push 0xc
call fcn.1003bfe0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x34], ecx
test ecx, ecx
mov byte [ebp - 4], 5
je 0x1001307a
push esi
call fcn.10015570
jmp 0x1001307c
xor eax, eax
test eax, eax
mov byte [ebp - 4], 4
mov dword [edi], eax
jne 0x10013090
push 0x8007000e
call fcn.1006e336
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.100155b0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.100151f0
test ax, ax
jne 0x10013140
mov ecx, dword [ebp - 0x48]
push 1
push 0x26
push ecx
call fcn.10014e80
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.10015560
push ecx
mov esi, eax
mov dword [ebp - 0x38], esp
mov edi, esp
push 0xc
call fcn.1003bfe0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x34], ecx
test ecx, ecx
mov byte [ebp - 4], 7
je 0x100130ef
push esi
call fcn.10015570
jmp 0x100130f1
xor eax, eax
test eax, eax
mov byte [ebp - 4], 4
mov dword [edi], eax
jne 0x10013105
push 0x8007000e
call fcn.1006e336
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call fcn.100155b0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.100151f0
test ax, ax
jne 0x10013140
mov al, byte [ebp - 0x4c]
test al, al
je 0x10013134
mov edx, dword [ebp - 0x48]
push edx
call fcn.1003c010
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100136e8
mov al, byte [ebp - 0x4c]
test al, al
je 0x10013153
mov eax, dword [ebp - 0x48]
push eax
call fcn.1003c010
add esp, 4
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, edi
jne 0x10013171
push 0x80004003
call fcn.1006e336
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push edx
call fcn.10014fb0
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp eax, edi
je 0x100136e0
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0xa
test eax, eax
jne 0x100131a4
push 0x80004003
call fcn.1006e336
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
mov esi, eax
call dword [ecx + 0x20]
test eax, eax
jge 0x100131c0
push 0x10085f48
push esi
push eax
call fcn.1006e344
cmp edi, dword [ebp + 8]
jge 0x10013270
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100131da
push 0x80004003
call fcn.1006e336
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.100150a0
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10015c80
lea ecx, [ebp - 0x2c]
call fcn.10002fd0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10013267
lea edx, [ebp - 0x28]
push edx
call fcn.10014eb0
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x1001323a
call fcn.10015630
jmp 0x1001323c
mov al, byte [ebp - 0x4c]
test al, al
je 0x1001322e
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1003c010
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100136e8
xor eax, eax
push str.smil
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
sete bl
call fcn.1000f220
test bl, bl
jne 0x10013270
push 0
lea ecx, [ebp - 0x18]
call fcn.10015c80
mov eax, dword [ebp - 0x14]
inc edi
jmp 0x10013193
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100136d8
lea eax, [ebp + 8]
push eax
call fcn.10014fb0
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10015c80
lea ecx, [ebp + 8]
call fcn.10002fd0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100136d8
xor edi, edi
test eax, eax
jne 0x100132b5
push 0x80004003
call fcn.1006e336
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea ecx, [ebp + 8]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x100132d1
push 0x10085f48
push esi
push eax
call fcn.1006e344
cmp edi, dword [ebp + 8]
jge 0x10013362
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100132eb
push 0x80004003
call fcn.1006e336
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x2c]
push edi
push edx
call fcn.100150a0
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push eax
call fcn.10015c80
lea ecx, [ebp - 0x2c]
call fcn.10002fd0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10013359
lea edx, [ebp - 0x28]
push edx
call fcn.10014eb0
mov ecx, dword [eax]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x1001332c
call fcn.10015630
jmp 0x1001332e
xor eax, eax
push str.body
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
sete bl
call fcn.1000f220
test bl, bl
jne 0x10013362
push 0
lea ecx, [ebp - 0x18]
call fcn.10015c80
mov eax, dword [ebp - 0x14]
inc edi
jmp 0x100132a4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100136d8
lea eax, [ebp + 8]
push eax
call fcn.10014fb0
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10015c80
lea ecx, [ebp + 8]
call fcn.10002fd0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100136d8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
test eax, eax
jne 0x100133b0
push 0x80004003
call fcn.1006e336
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov esi, eax
call dword [edx + 0x20]
test eax, eax
jge 0x100133cc
push 0x10085f48
push esi
push eax
call fcn.1006e344
cmp ebx, dword [ebp - 0x2c]
jge 0x100136ae
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100133e6
push 0x80004003
call fcn.1006e336
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
push ebx
push edx
call fcn.100150a0
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push eax
call fcn.10015c80
lea ecx, [ebp - 0x30]
call fcn.10002fd0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1001369c
lea edx, [ebp - 0x34]
push edx
call fcn.10014eb0
mov ecx, dword [eax]
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x1001342b
call fcn.10015630
jmp 0x1001342d
xor eax, eax
push 0x10085f30
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xa
sete bl
call fcn.1000f220
test bl, bl
jne 0x100136ae
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1001345f
push 0x80004003
call fcn.1006e336
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
push eax
call fcn.10014eb0
mov ecx, dword [eax]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x1001347c
call fcn.10015630
jmp 0x1001347e
xor eax, eax
push str.video
push eax
call edi
test eax, eax
je 0x100134d3
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1001349b
push 0x80004003
call fcn.1006e336
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10014eb0
mov ecx, dword [eax]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x100134b8
call fcn.10015630
jmp 0x100134ba
xor eax, eax
push str.audio
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x38]
sete bl
call fcn.1000f220
test bl, bl
je 0x100134d5
mov bl, 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.1000f220
test bl, bl
je 0x1001368f
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x100134fa
push 0x80004003
call fcn.1006e336
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push edx
call fcn.10015050
push ecx
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x40], esp
mov esi, esp
push 0xc
call fcn.1003bfe0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x44], ecx
test ecx, ecx
mov byte [ebp - 4], 0x11
je 0x10013533
push 0x10085f24
call fcn.10015570
jmp 0x10013535
xor eax, eax
test eax, eax
mov byte [ebp - 4], 0x10
mov dword [esi], eax
jne 0x10013549
push 0x8007000e
call fcn.1006e336
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
call fcn.100155b0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x10
push ecx
mov ecx, eax
call fcn.100150f0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1001367b
lea edx, [ebp - 0x84]
mov byte [ebp - 4], 0x14
push edx
call fcn.10014f50
mov esi, eax
mov dword [ebp + 8], 0
cmp word [esi], 8
mov byte [ebp - 4], 0x15
jne 0x100135a0
mov eax, dword [esi + 8]
lea ecx, [ebp + 8]
push eax
call fcn.10015440
jmp 0x100135dd
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 8
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x16
call fcn.10015660
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp + 8]
push edx
call fcn.10015440
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x15
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x100135dd
push eax
call fcn.1006e336
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x18
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x100135f8
push eax
call fcn.1006e336
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10013606
call fcn.10015630
jmp 0x10013608
xor eax, eax
push 0x26
push 1
push eax
call fcn.10014e80
mov dl, byte [ebp + 0xf]
add esp, 0xc
lea ecx, [ebp - 0x64]
mov esi, eax
push 0
mov byte [ebp - 0x64], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 0x19
mov eax, dword [ecx + 4]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10015840
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x18
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp + 8]
call fcn.1000f220
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [ebp - 4], 0x13
lea ecx, [ebp - 0x24]
call fcn.10002fd0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.10002fd0
push 0
lea ecx, [ebp - 0x18]
call fcn.10015c80
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
inc ebx
mov dword [ebp - 0x20], ebx
jmp 0x1001339f
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x100136d8
lea edx, [ebp + 8]
push edx
call fcn.10014fb0
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push eax
call fcn.10015c80
lea ecx, [ebp + 8]
call fcn.10002fd0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10013709
lea ecx, [ebp - 0x18]
call fcn.10002fd0
lea ecx, [ebp - 0x14]
call fcn.10002fd0
lea ecx, [ebp - 0x1c]
call fcn.10002fd0
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x90]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov dword [ebp - 0x20], edi
test eax, eax
jne 0x1001371f
push 0x80004003
call fcn.1006e336
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push edx
push eax
mov esi, eax
call dword [ecx + 0x20]
test eax, eax
jge 0x1001373b
push 0x10085f48
push esi
push eax
call fcn.1006e344
cmp edi, dword [ebp - 0x3c]
jge 0x10013918
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10013755
push 0x80004003
call fcn.1006e336
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.100150a0
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10015c80
lea ecx, [ebp - 0x38]
call fcn.10002fd0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x1001390c
lea edx, [ebp - 0x30]
push edx
call fcn.10014eb0
mov ecx, dword [eax]
mov byte [ebp - 4], 0x1b
test ecx, ecx
je 0x1001379a
call fcn.10015630
jmp 0x1001379c
xor eax, eax
push str.video
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100137ef
lea ecx, [ebp - 0x18]
call fcn.100155b0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.10014eb0
mov ecx, dword [eax]
mov byte [ebp - 4], 0x1c
test ecx, ecx
je 0x100137d0
call fcn.10015630
jmp 0x100137d2
xor eax, eax
push str.audio
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
lea ecx, [ebp - 0x34]
sete bl
call fcn.1000f220
test bl, bl
je 0x100137f1
mov bl, 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.1000f220
test bl, bl
je 0x1001390c
lea ecx, [ebp - 0x18]
call fcn.100155b0
lea edx, [ebp - 0x2c]
mov ecx, eax
push edx
call fcn.10015050
push ecx
mov byte [ebp - 4], 0x1d
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x10085f24
call fcn.10015360
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1e
call fcn.100155b0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x1d
push ecx
mov ecx, eax
call fcn.100150f0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x100138f8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x20
call fcn.100155b0
lea edx, [ebp - 0x84]
mov ecx, eax
push edx
call fcn.10014f50
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x21
call fcn.100156c0
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 0x23
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x10013894
push eax
call fcn.1006e336
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x100138a2
call fcn.10015630
jmp 0x100138a4
xor eax, eax
push 0x26
push 1
push eax
call fcn.10014e80
add esp, 0xc
lea ecx, [ebp + 0xb]
push ecx
push eax
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x74]
push edx
mov byte [ebp - 4], 0x24
call fcn.10015300
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x23
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0x28]
call fcn.1000f220
jmp 0x100138f1
mov dword [ebp - 4], 0x1f
lea ecx, [ebp - 0x24]
call fcn.10002fd0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call fcn.10002fd0
mov eax, dword [ebp - 0x14]
inc edi
mov dword [ebp - 0x20], edi
jmp 0x1001370e
lea ecx, [ebp - 0x18]
call fcn.10002fd0
lea ecx, [ebp - 0x14]
call fcn.10002fd0
lea ecx, [ebp - 0x1c]
call fcn.10002fd0
mov eax, 1
jmp 0x100136f2