Function at 0x10037cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c5ae6
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10101404]
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.100b0040
mov dword [ebp - 0x10], esp
mov esi, esp
push 0xdead0009
push 0xb2beef
lea eax, [ebp - 0x54]
push eax
call fcn.100018e0
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x10037d67
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.10002d60
mov eax, 4
call fcn.100b0040
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x7c], eax
cmp eax, ebx
je 0x10037da4
mov dword [eax], 0xabab00b2
mov dword [ebp - 4], 0xffffffff
jmp 0x10037dbc
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x10037dc9
mov dword [eax], 0xcdcd00b2
mov esi, 6
mov dword [ebp - 0x78], esi
test byte [0x10106d78], 1
jne 0x10037e01
or dword [0x10106d78], 1
mov dword [ebp - 4], 3
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x78]
push eax
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x10037f47
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.10031570
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x10037e5a
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.1000bc70
jmp 0x10037e68
push str.EnterFunction
push ecx
call fcn.1000d880
add esp, 8
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov edi, eax
mov byte [ebp - 4], 7
test byte [0x10106d78], 1
jne 0x10037eb1
or dword [0x10106d78], 1
mov esi, 8
mov byte [ebp - 4], 8
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], 7
jmp 0x10037eb6
mov esi, 8
mov ecx, 0x10106d2c
mov dword [ebp - 0x78], ecx
mov edx, dword [0x10106d2c]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov ecx, dword [0x10106d74]
cmp ecx, ebx
je 0x10037efb
cmp dword [edi + 0x14], esi
jb 0x10037ee0
mov eax, dword [edi]
jmp 0x10037ee2
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 [0x10106d2c]
mov ecx, 0x10106d2c
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x40], esi
jb 0x10037f25
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], 7
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.10031440
jmp 0x10037f4c
mov esi, 8
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x10037f59
mov dword [eax], 0xcdcd00b3
mov dword [ebp - 0x78], 6
test byte [0x10106d78], 1
jne 0x10037f90
or dword [0x10106d78], 1
mov dword [ebp - 4], 0xa
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
push ecx
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x100380c5
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
lea edi, [ebp - 0x38]
call fcn.10031570
mov ecx, eax
call fcn.10042070
push eax
call fcn.100289b0
add esp, 8
push 0x1ff
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
push ecx
call fcn.10031630
mov ecx, eax
call fcn.10001860
mov edi, eax
mov byte [ebp - 4], 0xe
test byte [0x10106d78], 1
jne 0x10038036
or dword [0x10106d78], 1
mov byte [ebp - 4], 0xf
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov byte [ebp - 4], 0xe
mov ecx, 0x10106d2c
mov dword [ebp - 0x78], ecx
mov edx, dword [0x10106d2c]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov ecx, dword [0x10106d74]
cmp ecx, ebx
je 0x1003807b
cmp dword [edi + 0x14], esi
jb 0x10038060
mov eax, dword [edi]
jmp 0x10038062
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 [0x10106d2c]
mov ecx, 0x10106d2c
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x40], esi
jb 0x100380a5
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], 7
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.10031440
mov edi, dword [ebp - 0x84]
push edi
lea ecx, [ebp - 0x7d]
call fcn.10038d00
add esp, 4
test al, al
jne 0x10038211
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x100380ec
mov dword [eax], 0xcdcd00b8
mov dword [ebp - 0x74], 6
test byte [0x10106d78], 1
jne 0x10038123
or dword [0x10106d78], 1
mov dword [ebp - 4], 0x11
call fcn.10030630
push 0x100ce5d0
call fcn.100af684
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
push ecx
mov edi, 0x10106d28
call fcn.10030d50
test al, al
je 0x1003820a
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.10031570
mov esi, eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
jne 0x10038182
push 0x11
push str.ExitFunction_Ret:
mov ecx, esi
call fcn.1000bc70
jmp 0x10038190
push str.ExitFunction_Ret:
push eax
call fcn.1000d880
add esp, 8
mov edx, str.False
call fcn.10030f60
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x15
push 0xb8
push str.FileHandler::Read
push str.FileHandler.cpp
push 6
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x40], 8
jb 0x100381e6
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.10031440
xor al, al
jmp 0x10038721
cmp byte [ebp - 0x7d], bl
jne 0x10038305
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x10038227
mov dword [eax], 0xcdcd00bc
mov dword [ebp - 0x74], 6
lea eax, [ebp - 0x74]
push eax
call fcn.10030800
mov edi, eax
call fcn.10030d50
test al, al
je 0x100382fe
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.10031570
mov edx, str.ExitFunction_Ret:
mov esi, eax
call fcn.10030f60
mov edx, str.False
mov esi, eax
call fcn.10030f60
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x19
push 0xbc
push str.FileHandler::Read
push str.FileHandler.cpp
push 6
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x40], 8
jb 0x100382da
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.10031440
xor al, al
jmp 0x10038721
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], ebx
xor edx, edx
mov word [ebp - 0x70], dx
mov dword [ebp - 4], 0x1a
push 2
push 0x100d14b8
lea ecx, [ebp - 0x70]
call fcn.1000bc70
cmp dword [ebp - 0x5c], esi
mov ecx, dword [ebp - 0x70]
jae 0x10038336
lea ecx, [ebp - 0x70]
cmp dword [edi + 0x14], esi
jb 0x1003833f
mov eax, dword [edi]
jmp 0x10038341
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 0x100384f4
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x10038365
mov dword [eax], 0xcdcd00c9
mov dword [ebp - 0x74], 2
lea eax, [ebp - 0x74]
push eax
call fcn.10030800
mov edi, eax
call fcn.10030d50
test al, al
je 0x10038413
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.10031570
mov edx, 0x100d48c0
mov esi, eax
call fcn.10030f60
mov ecx, dword [ebp - 0x84]
mov esi, eax
call fcn.10030f30
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x1e
push 0xc9
push str.FileHandler::Read
push str.FileHandler.cpp
push 2
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x54]
call fcn.10002d90
mov byte [ebp - 4], 0x1a
mov edx, edi
push edx
call fcn.10031440
xor ebx, ebx
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x10038420
mov dword [eax], 0xcdcd00ca
mov dword [ebp - 0x74], 6
lea eax, [ebp - 0x74]
push eax
call fcn.10030800
mov edi, eax
call fcn.10030d50
test al, al
je 0x100384cd
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.10031570
mov edx, str.ExitFunction_Ret:
mov esi, eax
call fcn.10030f60
mov edx, str.False
mov esi, eax
call fcn.10030f60
push 0x1ff
push ebx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x22
push 0xca
push str.FileHandler::Read
push str.FileHandler.cpp
push 6
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x54]
call fcn.10002d90
mov byte [ebp - 4], 0x1a
mov edx, edi
push edx
call fcn.10031440
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 8
jb 0x100384e7
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 0x10038717
push 2
push ebx
push esi
call dword [sym.imp.MSVCR100.dll_fseek]
push esi
call dword [sym.imp.MSVCR100.dll_ftell]
add esp, 0x10
mov edi, eax
cmp edi, ebx
jne 0x1003851d
mov edx, dword [ebp - 0x74]
mov dword [edx], ebx
mov eax, dword [ebp - 0x88]
mov dword [eax], ebx
jmp 0x10038571
push esi
call dword [sym.imp.MSVCR100.dll_rewind]
push edi
call fcn.100aa6c6
add esp, 8
mov ecx, dword [ebp - 0x88]
mov dword [ecx], eax
mov dword [ebp - 0x78], ebx
cmp edi, ebx
jle 0x10038569
lea esp, [esp]
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 0x10038569
mov ecx, dword [ebp - 0x78]
add ecx, eax
mov dword [ebp - 0x78], ecx
cmp ecx, edi
jl 0x10038540
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 0x10038588
mov dword [eax], 0xcdcd00eb
mov dword [ebp - 0x74], 6
lea eax, [ebp - 0x74]
push eax
call fcn.10030800
mov edi, eax
call fcn.10030d50
test al, al
je 0x1003863b
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
lea edi, [ebp - 0x38]
call fcn.10031570
mov ecx, eax
call fcn.10042100
push eax
call fcn.100289b0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x54]
push edx
mov eax, edi
push eax
call fcn.10031630
mov ecx, eax
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x26
push 0xeb
push str.FileHandler::Read
push str.FileHandler.cpp
push 6
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x54]
call fcn.10002d90
mov byte [ebp - 4], 0x1a
mov ecx, edi
push ecx
call fcn.10031440
xor ebx, ebx
mov eax, dword [ebp - 0x7c]
cmp eax, ebx
je 0x10038648
mov dword [eax], 0xcdcd00ec
mov dword [ebp - 0x74], 6
lea edx, [ebp - 0x74]
push edx
call fcn.10030800
mov edi, eax
call fcn.10030d50
test al, al
je 0x100386f5
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.10031570
mov edx, str.ExitFunction_Ret:
mov esi, eax
call fcn.10030f60
mov edx, str.True
mov esi, eax
call fcn.10030f60
push 0x1ff
push ebx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.10001860
mov ebx, eax
mov byte [ebp - 4], 0x2a
push 0xec
push str.FileHandler::Read
push str.FileHandler.cpp
push 6
call fcn.10030800
mov ecx, eax
call fcn.10030e00
mov byte [ebp - 4], 0x29
lea ecx, [ebp - 0x54]
call fcn.10002d90
mov byte [ebp - 4], 0x1a
mov ecx, edi
push ecx
call fcn.10031440
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 8
jb 0x1003870f
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 - 0x98]
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.100af1c6
mov esp, ebp
pop ebp
ret