Function at 0x4080d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4336
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x669404]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x74], edx
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebx + 0x10]
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov esi, esp
push 0xdead0009
push 0xb2beef
lea eax, [ebp - 0x54]
push eax
call fcn.00404610
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x40814a
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x54]
call fcn.00406010
mov eax, 8
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x7c], eax
cmp eax, ebx
je 0x408187
mov dword [eax], 0xabab00b2
mov dword [ebp - 4], 0xffffffff
jmp 0x40819f
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x4081ac
mov dword [eax], 0xcdcd00b2
mov esi, 6
mov dword [ebp - 0x78], esi
test byte [0x679728], 1
jne 0x4081e4
or dword [0x679728], 1
mov dword [ebp - 4], 3
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
push eax
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x408321
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], esi
lea edi, [ebp - 0x38]
call fcn.004193b0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x40823d
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.004044f0
jmp 0x40824b
push str.EnterFunction
push ecx
call fcn.004046b0
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov edi, eax
mov esi, 7
mov byte [ebp - 4], 7
test byte [0x679728], 1
jne 0x408292
or dword [0x679728], 1
mov byte [ebp - 4], 8
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 7
mov ecx, 0x6796dc
mov dword [ebp - 0x78], ecx
mov edx, dword [0x6796dc]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x4082d8
cmp dword [edi + 0x14], 8
jb 0x4082bd
mov eax, dword [edi]
jmp 0x4082bf
mov eax, edi
mov edx, dword [ecx]
push 0xb2
push str.FileHandler::Read
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x40], 8
jb 0x408303
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ebx
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.00419280
jmp 0x408326
mov esi, 7
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x408333
mov dword [eax], 0xcdcd00b3
mov dword [ebp - 0x78], 6
test byte [0x679728], 1
jne 0x40836a
or dword [0x679728], 1
mov dword [ebp - 4], 0xa
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x4084aa
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xd
mov edx, dword [ebp - 0x84]
push edx
push ecx
push str.EnterFunction_Path_
push ecx
lea edi, [ebp - 0x38]
call fcn.004193b0
add esp, 4
mov ecx, eax
call fcn.004162f0
add esp, 8
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
push ecx
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov edi, eax
mov byte [ebp - 4], 0xe
test byte [0x679728], 1
jne 0x40841d
or dword [0x679728], 1
mov byte [ebp - 4], 0xf
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 0xe
mov ecx, 0x6796dc
mov dword [ebp - 0x78], ecx
mov edx, dword [0x6796dc]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x408463
cmp dword [edi + 0x14], 8
jb 0x408448
mov eax, dword [edi]
jmp 0x40844a
mov eax, edi
mov edx, dword [ecx]
push 0xb3
push str.FileHandler::Read
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xe
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x40], 8
jb 0x40848e
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], ebx
xor edx, edx
mov word [ebp - 0x54], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
push eax
call fcn.00419280
mov edi, dword [ebp - 0x84]
push edi
lea ecx, [ebp - 0x7d]
call fcn.00409f50
add esp, 4
test al, al
jne 0x4085f6
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x4084d1
mov dword [eax], 0xcdcd00b8
mov dword [ebp - 0x74], 6
test byte [0x679728], 1
jne 0x408508
or dword [0x679728], 1
mov dword [ebp - 4], 0x11
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x4085ef
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x13
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x14
lea edi, [ebp - 0x38]
call fcn.004193b0
mov esi, eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jne 0x408567
push 0x11
push str.ExitFunction_Ret:
mov ecx, esi
call fcn.004044f0
jmp 0x408575
push str.ExitFunction_Ret:
push eax
call fcn.004046b0
add esp, 8
mov edx, str.False
call fcn.00418da0
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x15
push 0xb8
push str.FileHandler::Read
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x40], 8
jb 0x4085cb
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
xor ecx, ecx
mov word [ebp - 0x54], cx
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x38]
push edx
call fcn.00419280
xor al, al
jmp 0x408b27
cmp byte [ebp - 0x7d], bl
jne 0x4086ee
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x40860c
mov dword [eax], 0xcdcd00bc
mov dword [ebp - 0x74], 6
lea eax, [ebp - 0x74]
push eax
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x4086e7
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov dword [ebp - 4], 0x16
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0x17
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x18
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.ExitFunction_Ret:
mov esi, eax
call fcn.00418da0
mov edx, str.False
mov esi, eax
call fcn.00418da0
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x19
push 0xbc
push str.FileHandler::Read
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x40], 8
jb 0x4086c3
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
xor eax, eax
mov word [ebp - 0x54], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
push ecx
call fcn.00419280
xor al, al
jmp 0x408b27
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ebx
xor edx, edx
mov word [ebp - 0x70], dx
mov dword [ebp - 4], 0x1a
push 2
push 0x610bfc
lea ecx, [ebp - 0x70]
call fcn.004044f0
cmp dword [ebp - 0x5c], 8
mov ecx, dword [ebp - 0x70]
jae 0x40871c
lea ecx, [ebp - 0x70]
cmp dword [edi + 0x14], 8
jb 0x408726
mov eax, dword [edi]
jmp 0x408728
mov eax, edi
push 0x20
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wfsopen]
add esp, 0xc
mov esi, eax
cmp esi, ebx
jne 0x4088e3
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x40874c
mov dword [eax], 0xcdcd00c9
mov dword [ebp - 0x74], 2
lea eax, [ebp - 0x74]
push eax
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x4087fe
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0x1d
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, 0x6136b4
mov esi, eax
call fcn.00418da0
mov ecx, dword [ebp - 0x84]
mov esi, eax
call fcn.00418d70
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x1e
push 0xc9
push str.FileHandler::Read
push str.FileHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov byte [ebp - 4], 0x1a
mov edx, edi
push edx
call fcn.00419280
xor ebx, ebx
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x40880b
mov dword [eax], 0xcdcd00ca
mov dword [ebp - 0x74], 6
lea eax, [ebp - 0x74]
push eax
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x4088bc
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov byte [ebp - 4], 0x1f
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0x20
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0x21
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.ExitFunction_Ret:
mov esi, eax
call fcn.00418da0
mov edx, str.False
mov esi, eax
call fcn.00418da0
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x22
push 0xca
push str.FileHandler::Read
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov byte [ebp - 4], 0x1a
mov edx, edi
push edx
call fcn.00419280
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 8
jb 0x4088d6
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov word [ebp - 0x70], cx
xor al, al
jmp 0x408b1d
push 2
push ebx
push esi
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
push esi
call dword [sym.imp.MSVCR100.dll_ftell]
add esp, 4
mov edi, eax
cmp edi, ebx
jne 0x40890f
mov edx, dword [ebp - 0x74]
mov dword [edx], ebx
mov eax, dword [ebp - 0x88]
mov dword [eax], ebx
jmp 0x408962
push esi
call dword [sym.imp.MSVCR100.dll_rewind]
add esp, 4
push edi
call fcn.00543310
add esp, 4
mov ecx, dword [ebp - 0x88]
mov dword [ecx], eax
mov dword [ebp - 0x78], ebx
cmp edi, ebx
jle 0x40895a
push esi
push edi
push 1
mov edx, dword [ebp - 0x88]
mov eax, dword [edx]
add eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x40895a
mov ecx, dword [ebp - 0x78]
add ecx, eax
mov dword [ebp - 0x78], ecx
cmp ecx, edi
jl 0x408931
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x78]
mov dword [ecx], edx
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x408979
mov dword [eax], 0xcdcd00eb
mov dword [ebp - 0x74], 6
lea eax, [ebp - 0x74]
push eax
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x408a3d
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov byte [ebp - 4], 0x23
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0x24
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0x25
mov ecx, dword [ebp - 0x84]
push ecx
push ecx
push str.ExitFunction_Path_
push ecx
lea edi, [ebp - 0x38]
call fcn.004193b0
add esp, 4
mov ecx, eax
call fcn.004162f0
add esp, 8
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov eax, edi
push eax
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x26
push 0xeb
push str.FileHandler::Read
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov byte [ebp - 4], 0x1a
mov ecx, edi
push ecx
call fcn.00419280
xor ebx, ebx
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x408a4a
mov dword [eax], 0xcdcd00ec
mov dword [ebp - 0x74], 6
lea edx, [ebp - 0x74]
push edx
push ecx
call fcn.00418640
add esp, 4
mov edi, eax
call fcn.00418b90
test al, al
je 0x408afb
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov byte [ebp - 4], 0x27
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0x28
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0x29
lea edi, [ebp - 0x38]
call fcn.004193b0
mov edx, str.ExitFunction_Ret:
mov esi, eax
call fcn.00418da0
mov edx, str.True
mov esi, eax
call fcn.00418da0
push 0x1ff
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x2a
push 0xec
push str.FileHandler::Read
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x54]
call fcn.004068c0
mov byte [ebp - 4], 0x1a
mov ecx, edi
push ecx
call fcn.00419280
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 8
jb 0x408b15
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov word [ebp - 0x70], ax
mov al, 1
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 7
lea esp, [ebp - 0x9c]
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.00546bdc
mov esp, ebp
pop ebp
ret