Function at 0x101bd200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1025be84
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x1025be74], 0
je 0x101bd245
push 0x1025be84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1025be78]
push esi
push 0x208
mov dword [0x1025be7c], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x1021dc4c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x10257d10]
call fcn.100da6a0
lea eax, [ebp - 0x20c]
push 0x1021dc68
push eax
call sub.msvcrt.dll__wfopen
mov esi, eax
add esp, 0x24
test esi, esi
je 0x101bd3bc
push esi
push 4
lea eax, [ebp - 0x224]
push 1
push eax
call sub.msvcrt.dll_fread
push esi
push 4
lea eax, [ebp - 0x228]
push 1
push eax
call sub.msvcrt.dll_fread
push esi
push 4
lea eax, [ebp - 0x220]
push 1
push eax
call sub.msvcrt.dll_fread
push 1
push 4
push esi
call sub.msvcrt.dll_fseek
add esp, 0x3c
cmp dword [ebp - 0x220], 0
je 0x101bd3b3
lea ebx, [ebx]
push esi
push 0x10
lea eax, [ebp - 0x21c]
push 1
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 0x10
jne 0x101bd3a0
mov eax, dword [ebp - 0x21c]
xor dword [ebp - 0x218], 0x12345678
xor eax, 0x12345678
xor dword [ebp - 0x214], 0x12345678
xor dword [ebp - 0x210], 0x12345678
mov ecx, dword [0x1025be7c]
mov dword [ebp - 0x21c], eax
cmp dword [0x1025be80], ecx
je 0x101bd37f
mov dword [ecx], eax
mov eax, dword [0x1025be7c]
mov ecx, dword [ebp - 0x218]
mov dword [eax + 4], ecx
mov eax, dword [0x1025be7c]
mov ecx, dword [ebp - 0x214]
mov dword [eax + 8], ecx
mov eax, dword [0x1025be7c]
mov ecx, dword [ebp - 0x210]
mov dword [eax + 0xc], ecx
add dword [0x1025be7c], 0x10
jmp 0x101bd391
lea eax, [ebp - 0x21c]
push eax
push ecx
mov ecx, 0x1025be78
call fcn.101bcfd0
sub dword [ebp - 0x220], 1
jne 0x101bd2f0
jmp 0x101bd3b3
cmp dword [ebp - 0x220], 0
je 0x101bd3b3
mov eax, dword [0x1025be78]
mov dword [0x1025be7c], eax
push esi
call sub.msvcrt.dll_fclose
add esp, 4
xor eax, eax
push str.libwhite2.dat
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x10257d10]
call fcn.100da6a0
lea eax, [ebp - 0x20c]
push 0x1021dc68
push eax
call sub.msvcrt.dll__wfopen
mov esi, eax
add esp, 0x18
test esi, esi
je 0x101bd507
push esi
push 4
lea eax, [ebp - 0x228]
push 1
push eax
call sub.msvcrt.dll_fread
push esi
push 4
lea eax, [ebp - 0x224]
push 1
push eax
call sub.msvcrt.dll_fread
push esi
push 4
lea eax, [ebp - 0x220]
push 1
push eax
call sub.msvcrt.dll_fread
push 1
push 4
push esi
call sub.msvcrt.dll_fseek
add esp, 0x3c
cmp dword [ebp - 0x220], 0
je 0x101bd4fe
lea esp, [esp]
push esi
push 0x10
lea eax, [ebp - 0x21c]
push 1
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
cmp eax, 0x10
jne 0x101bd4fe
mov eax, dword [ebp - 0x21c]
xor dword [ebp - 0x218], 0x12345678
xor eax, 0x12345678
xor dword [ebp - 0x214], 0x12345678
xor dword [ebp - 0x210], 0x12345678
mov ecx, dword [0x1025be7c]
mov dword [ebp - 0x21c], eax
cmp dword [0x1025be80], ecx
je 0x101bd4df
mov dword [ecx], eax
mov eax, dword [0x1025be7c]
mov ecx, dword [ebp - 0x218]
mov dword [eax + 4], ecx
mov eax, dword [0x1025be7c]
mov ecx, dword [ebp - 0x214]
mov dword [eax + 8], ecx
mov eax, dword [0x1025be7c]
mov ecx, dword [ebp - 0x210]
mov dword [eax + 0xc], ecx
add dword [0x1025be7c], 0x10
jmp 0x101bd4f1
lea eax, [ebp - 0x21c]
push eax
push ecx
mov ecx, 0x1025be78
call fcn.101bcfd0
sub dword [ebp - 0x220], 1
jne 0x101bd450
push esi
call sub.msvcrt.dll_fclose
add esp, 4
push 0x1025be84
mov byte [0x1025be74], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.101f99c6
mov esp, ebp
pop ebp
ret