Function at 0x40e760
Capabilities:
Check if file exists
Get file attributes
Get file size
Move file
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474d0e
mov eax, dword fs:[0]
push eax
sub esp, 0xa90
mov eax, dword [0x4931e0]
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 ebx, ecx
cmp dword [ebx + 0x1c], 8
lea esi, [ebx + 8]
jb 0x40e79d
mov eax, dword [esi]
jmp 0x40e79f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e7e2
cmp dword [ebx + 0x34], 8
lea edi, [ebx + 0x20]
jb 0x40e7b8
mov eax, dword [edi]
jmp 0x40e7ba
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e7e2
cmp dword [esi + 0x14], 8
jb 0x40e7d0
mov eax, dword [esi]
jmp 0x40e7d2
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x40e7da
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [esi + 0x14], 8
jb 0x40e7ec
mov eax, dword [esi]
jmp 0x40e7ee
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, esi
call fcn.0040e450
push ecx
lea ecx, [ebp - 0x9ec]
mov dword [ebx + 0x4c], eax
call fcn.00413480
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa9c]
call fcn.0040a630
mov dword [ebp - 0x830], 0xf
mov dword [ebp - 0x834], 0
mov byte [ebp - 0x844], 0
xor eax, eax
mov dword [ebp - 0x848], 7
mov dword [ebp - 0x84c], 0
mov word [ebp - 0x85c], ax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], eax
mov word [ebp - 0x82c], ax
mov dword [ebp - 0x890], 7
mov dword [ebp - 0x894], eax
mov word [ebp - 0x8a4], ax
mov dword [ebp - 0x860], 7
mov dword [ebp - 0x864], eax
mov word [ebp - 0x874], ax
mov dword [ebp - 0x878], 7
mov dword [ebp - 0x87c], eax
mov word [ebp - 0x88c], ax
push 0x800
push eax
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 7
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40e8dc
mov eax, dword [esi]
jmp 0x40e8de
mov eax, esi
push 0
push 0
push 0x800
lea ecx, [ebp - 0x814]
push ecx
push dword [ebx + 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx + 0x4c]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
jne 0x40ea3e
push ecx
push 1
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x9d4]
call fcn.004145b0
test eax, eax
lea ecx, [ebp - 0x9ec]
mov eax, dword [ebp - 0x9ec]
push 0
mov eax, dword [eax + 4]
jne 0x40e943
push 2
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x40e94d
push 0
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov eax, dword [ebp - 0x9ec]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x9e0], 6
jne 0x40f30b
lea ecx, [ebp - 0x9ec]
push 0xa
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
push eax
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x9ec]
push eax
call fcn.00417130
mov esi, dword [ebp - 0x834]
add esp, 0xc
mov edx, 2
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
sete byte [ebp - 0x91d]
inc esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004724fc
add esp, 4
mov dword [ebp - 0x928], eax
lea ecx, [esi + esi]
push ecx
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x844]
add esp, 0xc
cmp dword [ebp - 0x830], 0x10
cmovae ecx, dword [ebp - 0x844]
push esi
mov esi, dword [ebp - 0x928]
push esi
push dword [ebp - 0x834]
push ecx
push 0
push 0
call eax
cmp word [esi], 0
jne 0x40ea0e
xor ecx, ecx
jmp 0x40ea22
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ea13
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x82c]
call fcn.00408370
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x40ed25
cmp eax, 1
jne 0x40eba6
cmp dword [esi + 0x14], 8
jb 0x40ea4f
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 7
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x928], eax
cmp eax, 0xffffffff
je 0x40f30b
lea ecx, [ebp - 0x92c]
mov dword [ebp - 0x92c], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x40eb00
lea ecx, [esi + 2]
push ecx
call fcn.004724fc
add esp, 4
mov edi, eax
lea eax, [ebp - 0x924]
push 0
push eax
push esi
mov word [edi + esi], 0
mov esi, dword [ebp - 0x928]
push edi
push esi
mov dword [ebp - 0x924], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40eaee
push 0x4154c0
push ecx
lea edx, [edi + 2]
lea ecx, [ebp - 0xa8c]
call fcn.0040b650
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x40eb06
mov esi, dword [ebp - 0x928]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xa9c]
lea ecx, [ebp - 0xa9c]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_wchar_t___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const]
movzx eax, ax
lea edx, [ebp - 0x85c]
push eax
lea ecx, [ebp - 0xa9c]
call fcn.004172a0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
sete byte [ebp - 0x91d]
cmp dword [ebp - 0x84c], 0
je 0x40ed0f
mov ecx, dword [ebp - 0x848]
lea eax, [ebp - 0x85c]
mov edx, dword [ebp - 0x85c]
cmp ecx, 8
mov esi, 0xfeff
cmovae eax, edx
cmp word [eax], si
jne 0x40ed0f
cmp ecx, 8
lea eax, [ebp - 0x85c]
lea ecx, [ebp - 0x85c]
cmovae eax, edx
push eax
lea eax, [ebp - 0x924]
push eax
call fcn.00412a90
jmp 0x40ed0f
cmp eax, 2
jne 0x40f4ce
push ecx
push 1
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x9d4]
call fcn.004145b0
test eax, eax
lea ecx, [ebp - 0x9ec]
mov eax, dword [ebp - 0x9ec]
push 0
mov eax, dword [eax + 4]
jne 0x40ebe5
push 2
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x40ebef
push 0
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov eax, dword [ebp - 0x9ec]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x9e0], 6
jne 0x40f30b
lea ecx, [ebp - 0x9ec]
push 0xa
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
push eax
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x9ec]
push eax
call fcn.00417130
mov esi, dword [ebp - 0x834]
add esp, 0xc
mov edx, 2
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
sete byte [ebp - 0x91d]
inc esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004724fc
add esp, 4
mov dword [ebp - 0x924], eax
lea ecx, [esi + esi]
push ecx
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x844]
add esp, 0xc
cmp dword [ebp - 0x830], 0x10
cmovae ecx, dword [ebp - 0x844]
push esi
mov esi, dword [ebp - 0x924]
push esi
push dword [ebp - 0x834]
push ecx
push 0
push 0xfde9
call eax
push esi
lea ecx, [ebp - 0x85c]
call fcn.0040a530
cmp dword [ebp - 0x84c], 0
je 0x40ed05
mov ecx, dword [ebp - 0x848]
lea eax, [ebp - 0x85c]
mov edx, dword [ebp - 0x85c]
cmp ecx, 8
mov edi, 0xfeff
cmovae eax, edx
cmp word [eax], di
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jne 0x40ed05
cmp ecx, 8
lea eax, [ebp - 0x85c]
lea ecx, [ebp - 0x85c]
cmovae eax, edx
push eax
lea eax, [ebp - 0x924]
push eax
call fcn.00412a90
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x85c]
push eax
lea ecx, [ebp - 0x82c]
call fcn.00408570
cmp byte [ebp - 0x91d], 0
je 0x40f4ce
cmp dword [ebp - 0x81c], 0
je case.0x40ee63.36
push 9
lea ecx, [ebp - 0x82c]
call fcn.0040fb30
cmp dword [ebp - 0x818], 8
lea eax, [ebp - 0x82c]
mov ecx, dword [ebp - 0x81c]
cmovae eax, dword [ebp - 0x82c]
cmp word [eax + ecx*2 - 2], 0xd
jne 0x40ede3
lea eax, [ecx - 1]
push eax
push 0
lea eax, [ebp - 0x8bc]
push eax
lea ecx, [ebp - 0x82c]
call fcn.00412ad0
mov esi, eax
lea eax, [ebp - 0x82c]
cmp eax, esi
je 0x40edcf
cmp dword [ebp - 0x818], 8
jb 0x40eda6
push dword [ebp - 0x82c]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x818], 7
push esi
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
call fcn.0040adf0
cmp dword [ebp - 0x8a8], 8
jb 0x40ede3
push dword [ebp - 0x8bc]
call edi
add esp, 4
cmp dword [ebp - 0x81c], 0
je case.0x40ee63.36
cmp dword [ebp - 0x818], 8
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
movzx eax, word [eax]
push eax
call dword [sym.imp.MSVCR120.dll_iswprint]
add esp, 4
test eax, eax
je 0x40f2d4
push 4
push 0
push str.__
lea ecx, [ebp - 0x82c]
call fcn.004141e0
mov esi, eax
cmp esi, 0xffffffff
je case.0x40ee63.36
cmp dword [ebp - 0x818], 8
lea ecx, [ebp - 0x82c]
cmovae ecx, dword [ebp - 0x82c]
movzx eax, word [ecx + esi*2]
add eax, 0xffffffdd
cmp eax, 0x38
ja case.0x40ee63.36
movzx eax, byte [eax + 0x40f500]
jmp dword [eax*4 + 0x40f4f0]
push 1
push 0xffffffffffffffff
push 0x483240
lea ecx, [ebp - 0x82c]
call fcn.00414270
cmp eax, 0xffffffff
je case.0x40ee63.36
cmp eax, esi
jbe case.0x40ee63.36
sub eax, esi
lea ecx, [ebp - 0x82c]
dec eax
push eax
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x8bc]
push eax
call fcn.00412ad0
push eax
lea ecx, [ebp - 0x8a4]
call fcn.0040a4f0
lea ecx, [ebp - 0x8bc]
call fcn.00407b40
lea eax, [ebp - 0x8a4]
mov ecx, ebx
push eax
call fcn.0040f6d0
jmp case.0x40ee63.36
push esi
push 0
lea eax, [ebp - 0x8d4]
push eax
lea ecx, [ebp - 0x82c]
call fcn.00412ad0
push eax
lea ecx, [ebp - 0x874]
call fcn.0040a4f0
lea ecx, [ebp - 0x8d4]
call fcn.00407b40
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x904]
push eax
lea ecx, [ebp - 0x82c]
call fcn.00412ad0
push eax
lea ecx, [ebp - 0x88c]
call fcn.0040a4f0
lea ecx, [ebp - 0x904]
call fcn.00407b40
cmp dword [ebp - 0x864], 0
je 0x40ef86
push 0x20
lea ecx, [ebp - 0x874]
call fcn.0040fb30
cmp dword [ebp - 0x864], 0
je 0x40ef86
push 0x20
lea ecx, [ebp - 0x874]
call fcn.0040fbe0
cmp dword [ebp - 0x864], 0
je 0x40ef86
push 9
lea ecx, [ebp - 0x874]
call fcn.0040fb30
cmp dword [ebp - 0x864], 0
je 0x40ef86
push 9
lea ecx, [ebp - 0x874]
call fcn.0040fbe0
cmp dword [ebp - 0x87c], 0
je 0x40efde
push 0x20
lea ecx, [ebp - 0x88c]
call fcn.0040fb30
cmp dword [ebp - 0x87c], 0
je 0x40efde
push 0x20
lea ecx, [ebp - 0x88c]
call fcn.0040fbe0
cmp dword [ebp - 0x87c], 0
je 0x40efde
push 9
lea ecx, [ebp - 0x88c]
call fcn.0040fb30
cmp dword [ebp - 0x87c], 0
je 0x40efde
push 9
lea ecx, [ebp - 0x88c]
call fcn.0040fbe0
push ecx
lea eax, [ebp - 0x88c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x8a4]
push eax
call fcn.0040fad0
jmp case.0x40ee63.36
cmp dword [ebx + 0x3c], 0
lea eax, [esi + 1]
push 0xffffffffffffffff
lea ecx, [ebp - 0x82c]
push eax
jne 0x40f04b
lea eax, [ebp - 0x8ec]
push eax
call fcn.00412ad0
push eax
lea ecx, [ebx + 0x40]
mov byte [ebp - 4], 8
mov edx, dword [ecx + 4]
mov eax, 0x2aaaaaab
sub edx, dword [ecx]
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc eax
add eax, edx
push eax
call fcn.00412f40
lea ecx, [ebp - 0x8ec]
jmp 0x40f088
lea eax, [ebp - 0x91c]
push eax
call fcn.00412ad0
mov esi, eax
lea eax, [ebp - 0x8a4]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x924]
mov ecx, ebx
push eax
call fcn.0040f540
mov eax, dword [eax]
cmp eax, dword [ebx + 0x38]
je 0x40f082
lea ecx, [eax + 0x30]
push esi
call fcn.00413090
lea ecx, [ebp - 0x91c]
mov byte [ebp - 4], 7
call fcn.00407b40
mov eax, dword [ebx + 0x4c]
test eax, eax
jne 0x40f17b
mov eax, dword [ebp - 0x9ec]
lea ecx, [ebp - 0x9ec]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
push eax
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x9ec]
push eax
call fcn.00417130
mov esi, dword [ebp - 0x834]
add esp, 0xc
mov edx, 2
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
sete byte [ebp - 0x91d]
inc esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004724fc
add esp, 4
lea ecx, [esi + esi]
mov edi, eax
push ecx
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x844]
cmp dword [ebp - 0x830], 0x10
cmovae ecx, dword [ebp - 0x844]
push esi
push edi
push dword [ebp - 0x834]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [edi], 0
jne 0x40f144
xor ecx, ecx
jmp 0x40f15f
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f150
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x82c]
call fcn.00408370
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x40f2bc
cmp eax, 1
jne 0x40f1c7
mov eax, dword [ebp - 0xa9c]
lea ecx, [ebp - 0xa9c]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_wchar_t___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::widen_char_const]
movzx eax, ax
lea edx, [ebp - 0x85c]
push eax
lea ecx, [ebp - 0xa9c]
call fcn.004172a0
add esp, 4
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
sete byte [ebp - 0x91d]
jmp 0x40f2a6
cmp eax, 2
jne 0x40f2bc
mov eax, dword [ebp - 0x9ec]
lea ecx, [ebp - 0x9ec]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
push eax
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x9ec]
push eax
call fcn.00417130
mov esi, dword [ebp - 0x834]
add esp, 0xc
mov edx, 2
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
sete byte [ebp - 0x91d]
inc esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004724fc
add esp, 4
lea ecx, [esi + esi]
mov edi, eax
push ecx
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x844]
cmp dword [ebp - 0x830], 0x10
cmovae ecx, dword [ebp - 0x844]
push esi
push edi
push dword [ebp - 0x834]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp word [edi], 0
jne 0x40f27b
xor ecx, ecx
jmp 0x40f28f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f280
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x85c]
call fcn.00408370
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x85c]
push eax
lea ecx, [ebp - 0x82c]
call fcn.00408570
cmp byte [ebp - 0x91d], 0
je 0x40f4ce
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jmp 0x40ed32
cmp dword [ebp - 0x818], 8
lea eax, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
movzx eax, word [eax]
push eax
push str.Failing_on_char__d_n
call dword [sym.imp.MSVCR120.dll_wprintf]
add esp, 8
cmp dword [ebx + 0x4c], 0
jne 0x40f30b
lea ecx, [ebp - 0x9ec]
call fcn.004135d0
xor bl, bl
cmp dword [ebp - 0x878], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40f327
push dword [ebp - 0x88c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x878], 7
cmp dword [ebp - 0x860], 8
mov dword [ebp - 0x87c], 0
mov word [ebp - 0x88c], ax
jb 0x40f358
push dword [ebp - 0x874]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x860], 7
cmp dword [ebp - 0x890], 8
mov dword [ebp - 0x864], 0
mov word [ebp - 0x874], ax
jb 0x40f389
push dword [ebp - 0x8a4]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x890], 7
cmp dword [ebp - 0x818], 8
mov dword [ebp - 0x894], 0
mov word [ebp - 0x8a4], ax
jb 0x40f3ba
push dword [ebp - 0x82c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x818], 7
cmp dword [ebp - 0x848], 8
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
jb 0x40f3eb
push dword [ebp - 0x85c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x848], 7
cmp dword [ebp - 0x830], 0x10
mov dword [ebp - 0x84c], 0
mov word [ebp - 0x85c], ax
jb 0x40f41c
push dword [ebp - 0x844]
call esi
add esp, 4
mov eax, dword [ebp - 0xa9c]
mov dword [ebp - 0x830], 0xf
mov dword [ebp - 0x834], 0
mov byte [ebp - 0x844], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa9c], 0x482ec8
mov eax, dword [ebp - 0xa9c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xaa0], eax
lea ecx, [ebp - 0xa84]
mov dword [ebp - 0xa84], 0x482e8c
call fcn.004033a0
lea ecx, [ebp - 0xa84]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xa7c]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xa34]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x974]
call fcn.00413560
lea ecx, [ebp - 0x974]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov al, bl
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.0047259d
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x4c], 0
jne 0x40f4df
lea ecx, [ebp - 0x9ec]
call fcn.004135d0
cmp dword [ebx + 0x3c], 0
je 0x40f30b
mov bl, 1
jmp 0x40f30d