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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018e875
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x101ebb68]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push eax
lea edx, [ebp - 0xf0]
push edx
mov dword [ebp - 0x12c], ecx
call dword [sym.imp.MGCore.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_MGStringUtil::convertANSIToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___enum_MGStringUtil::eSrcCodePage_]
mov esi, 8
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x1007a417
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0xdc], esi
jb 0x1007a44b
mov eax, dword [ebp - 0xf0]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x120], 0xffffffff
je 0x1007a4b9
sub esp, 0x18
mov dword [ebp - 0x11c], esp
mov eax, esp
je 0x1007a476
mov dword [eax], vtable.std::tr1::_Impl_base0_void_.0
lea ecx, [ebp - 0x120]
mov dword [eax], vtable.._AV___Impl_no_alloc0_U___Callable_obj_V_lambda0___A0x729caeda___0A__tr1_std__X_tr1_std__.0
mov dword [eax + 4], ecx
lea esi, [ebp - 0x114]
mov dword [eax + 0x10], eax
call fcn.1007ca90
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x120]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.10124806
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x1007a4c0
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.1007ca10
xor al, al
jmp 0x1007acbb
push edi
push ebx
push esi
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x120]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x130]
push ecx
push edi
push esi
push edx
mov dword [ebp - 0x130], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x130], edi
jne 0x1007a4a6
mov eax, esi
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007a503
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x64]
call fcn.1000c100
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea ecx, [ebp - 0x64]
cmp dword [ebp - 0x54], ebx
jne 0x1007a54b
call fcn.1000c240
lea ecx, [ebp - 0x114]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.1007ca10
xor al, al
jmp 0x1007acbb
push 1
push ebx
lea edx, [ebp - 0x118]
push edx
mov byte [ebp - 0x118], 0xa
call fcn.1003ae50
mov esi, eax
push esi
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x11c], esi
call fcn.10025fb0
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
je 0x1007aba6
xor ebx, ebx
cmp dword [ebp - 0x38], ebx
jne 0x1007a5f9
mov esi, dword [ebp - 0x11c]
push 1
mov edi, esi
inc esi
push esi
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x118], 0xa
call fcn.1003ae50
mov dword [ebp - 0x11c], eax
sub eax, edi
push eax
push esi
lea edx, [ebp - 0xf0]
push edx
lea ecx, [ebp - 0x64]
call fcn.10025fb0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.1000b240
mov byte [ebp - 4], 2
cmp dword [ebp - 0xdc], 0x10
jb 0x1007aa97
mov eax, dword [ebp - 0xf0]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1007aa97
push 0xa8
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x1007a612
call fcn.10020f70
jmp 0x1007a614
xor eax, eax
push eax
lea ecx, [ebp - 0x128]
push ecx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
call fcn.10020670
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x128]
mov dword [esi], ebx
mov dword [esi + 4], ebx
push 1
mov dword [esi + 8], ebx
lea ecx, [esi + 0x2c]
push 0x101ac920
mov dword [esi + 0xc], ebx
call fcn.1000c100
push ebx
lea ecx, [esi + 0x48]
push 0x101a4104
call fcn.1000c100
xor eax, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor edi, edi
mov byte [ebp - 0x118], 0x2c
lea esp, [esp]
push 1
inc eax
push eax
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x48]
call fcn.1003ae50
cmp eax, 0xffffffff
je 0x1007aaa9
mov dword [ebp + edi*4 - 0x2c], eax
inc edi
cmp edi, 6
jl 0x1007a680
mov edi, dword [ebp - 0x2c]
push edi
push ebx
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x48]
call fcn.10025fb0
push 3
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xc4]
push 0x101a3e58
push ecx
push ebx
lea ecx, [ebp - 0xd4]
call fcn.1000b070
test eax, eax
jne 0x1007a9c8
mov ebx, dword [ebp - 0x28]
mov edx, ebx
sub edx, edi
dec edx
push edx
inc edi
push edi
lea eax, [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x48]
call fcn.10025fb0
mov byte [ebp - 4], 6
push 4
push str.send
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
call fcn.1000c100
mov byte [ebp - 4], 7
cmp dword [ebp - 0xa4], 0x10
mov eax, dword [ebp - 0xb8]
jae 0x1007a744
lea eax, [ebp - 0xb8]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xe0]
push ecx
push eax
push edx
xor edi, edi
push edi
lea ecx, [ebp - 0xf0]
call fcn.1000b070
lea ecx, [esi + 0x10]
push 1
test eax, eax
jne 0x1007a771
push 0x101ac804
jmp 0x1007a776
push 0x101ac554
call fcn.1000c100
mov eax, dword [ebp - 0x24]
sub eax, ebx
dec eax
push eax
inc ebx
push ebx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x48]
call fcn.10025fb0
lea ecx, [esi + 0x8c]
push eax
mov byte [ebp - 4], 8
call fcn.1000b240
mov byte [ebp - 4], 7
cmp dword [ebp - 0x6c], 0x10
jb 0x1007a7b7
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea edx, [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x48]
call fcn.10025fb0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x8c], edi
je 0x1007a7fe
lea ecx, [ebp - 0x9c]
call fcn.10036e00
push edi
push 0x3e8
push edx
push eax
call fcn.101790b0
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
jmp 0x1007a804
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov edi, dword [ebp - 0x18]
push 0xffffffffffffffff
inc edi
push edi
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x48]
call fcn.10025fb0
cmp dword [eax + 0x10], 0x258
seta bl
cmp dword [ebp - 0x6c], 0x10
jb 0x1007a834
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x1007a90a
push 0x258
push edi
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x48]
call fcn.10025fb0
push eax
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0xa
call fcn.1000b240
mov byte [ebp - 4], 9
cmp dword [ebp - 0x6c], 0x10
jb 0x1007a872
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
call fcn.10032ab0
mov ebx, 0x10
cmp dword [ebp - 0x88], ebx
jb 0x1007a8a0
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor esi, esi
mov edi, 0xf
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], esi
mov byte [ebp - 0x9c], 0
cmp dword [ebp - 0xa4], ebx
jb 0x1007a8d2
mov eax, dword [ebp - 0xb8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 5
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], esi
mov byte [ebp - 0xb8], 0
cmp dword [ebp - 0xdc], ebx
jb 0x1007a9cd
mov ecx, dword [ebp - 0xf0]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x1007a9cd
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x48]
call fcn.10025fb0
push eax
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0xb
call fcn.1000b240
mov byte [ebp - 4], 9
cmp dword [ebp - 0x6c], 0x10
jb 0x1007a940
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ecx]
mov eax, dword [esi + 0x80]
push 1
dec eax
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [esi + 0x70]
call fcn.10025fb0
push 1
mov byte [ebp - 4], 0xc
mov ecx, dword [eax + 0x10]
push 0x101a8aa0
push ecx
push 0
mov ecx, eax
call fcn.1000b070
test eax, eax
sete bl
mov byte [ebp - 4], 9
cmp dword [ebp - 0x6c], 0x10
jb 0x1007a98a
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
test bl, bl
je 0x1007a872
mov eax, dword [esi + 0x80]
dec eax
push eax
push 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [esi + 0x70]
call fcn.10025fb0
push eax
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 0xd
call fcn.1000b240
mov byte [ebp - 4], 9
cmp dword [ebp - 0x6c], 0x10
jb 0x1007a940
mov ecx, dword [ebp - 0x80]
push ecx
jmp 0x1007a934
mov ebx, 0x10
mov edi, dword [ebp - 0x11c]
push 1
lea esi, [edi + 1]
push esi
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x64]
mov byte [ebp - 0x118], 0xa
call fcn.1003ae50
mov dword [ebp - 0x11c], eax
cmp eax, 0xffffffff
je 0x1007ab3c
sub eax, edi
push eax
push esi
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x64]
call fcn.10025fb0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.1000b240
cmp dword [ebp - 0x6c], ebx
jb 0x1007aa2d
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0xc0], ebx
jb 0x1007aa45
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x124]
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], 0
mov byte [ebp - 0xd4], 0
test esi, esi
je 0x1007aa97
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1007aa97
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1007aa97
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x1007a584
jmp 0x1007aba6
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x124]
cmp esi, ebx
je 0x1007aae0
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1007aae0
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1007aae0
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jb 0x1007aaf7
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x50], edi
jb 0x1007ab18
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x114]
push edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
call fcn.1007ca10
xor al, al
jmp 0x1007acbb
cmp dword [ebp - 0xc0], ebx
jb 0x1007ab54
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x124]
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], 0
mov byte [ebp - 0xd4], 0
test esi, esi
je 0x1007aba6
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1007aba6
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1007aba6
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x12c]
mov esi, dword [eax]
xor edi, edi
cmp esi, dword [eax + 4]
je 0x1007ac2d
mov eax, dword [esi]
push 1
push edi
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [eax + 0x70]
mov byte [ebp - 0x118], 0xa
call fcn.1003ae50
cmp eax, 0xffffffff
je 0x1007ac2d
mov ecx, dword [esi]
push eax
push edi
lea edx, [ebp - 0x9c]
push edx
add ecx, 0x70
call fcn.10025fb0
mov byte [ebp - 4], 0xf
mov ecx, dword [esi]
push eax
lea ecx, [ecx + 0x70]
call fcn.1000b240
mov esi, 0x10
cmp dword [ebp - 0x88], esi
jb 0x1007ac14
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], edi
mov byte [ebp - 0x9c], 0
jmp 0x1007ac32
mov esi, 0x10
cmp dword [ebp - 0x34], esi
jb 0x1007ac44
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, 0xf
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x50], esi
jb 0x1007ac65
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], esi
cmp byte [ebp - 0xfc], 0
jne 0x1007ac92
mov ecx, dword [ebp - 0x104]
cmp ecx, edi
jne 0x1007ac8b
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::tr1::_Xfunc_void_]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x104]
cmp ecx, edi
je 0x1007acb9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [ebp - 0x114]
cmp ecx, edx
setne dl
movzx edx, dl
push edx
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10178946
mov esp, ebp
pop ebp
ret