Function at 0x100025cb
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1003097f
push eax
mov dword fs:[0], esp
sub esp, 0xec
push esi
mov esi, ecx
add dword [esi + 0x148], 1
mov eax, dword [esi + 0x104]
test eax, eax
push edi
mov edi, dword [esi + 0x148]
je 0x10002601
mov ecx, dword [esi + 0x108]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jne 0x10002621
pop edi
mov eax, 4
pop esi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
mov eax, dword [esi + 0x104]
test eax, eax
je 0x1000264a
mov ecx, dword [esi + 0x108]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x10002650
call dword [0x100351c0]
mov ecx, dword [esi + 0x104]
lea eax, [edi*8]
sub eax, edi
lea eax, [ecx + eax*4]
push eax
lea ecx, [esp + 0xc]
call dword [0x1003509c]
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
mov dword [esp + 0xfc], 0
jae 0x10002687
lea eax, [esp + 0xc]
push ebx
push 0x10035648
push eax
call dword [0x100351bc]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10002705
push str.unable_to_open_the_file
lea ecx, [esp + 0x2c]
call dword [0x100350ac]
lea edx, [esp + 0xc]
push edx
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x10c], 1
call dword [0x100350c0]
add esp, 0xc
push eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x104], 2
call dword [0x10035098]
lea ecx, [esp + 0x44]
mov byte [esp + 0x100], 1
call dword [0x100350a0]
lea ecx, [esp + 0x28]
mov byte [esp + 0x100], bl
call dword [0x100350a0]
jmp 0x100028e2
push ebp
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x70]
call dword [0x100351ec]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x104], 3
call dword [0x100351e8]
mov edi, eax
lea ebp, [esi + 0x14c]
push edi
mov ecx, ebp
mov dword [esp + 0x6c], edx
call fcn.10012f80
mov eax, dword [ebp]
push ebx
push 1
lea edx, [edi + eax]
push edi
push eax
mov dword [esi + 0x158], eax
mov dword [esi + 0x15c], eax
mov dword [esi + 0x160], edx
call dword [0x100351b8]
add esp, 0x10
cmp eax, 1
pop ebp
je 0x10002813
push 0x1003571c
lea ecx, [esp + 0x48]
call dword [0x100350ac]
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x30]
mov bl, 4
push edx
mov byte [esp + 0x10c], bl
call dword [0x100350c0]
add esp, 0xc
push eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x104], 5
call dword [0x10035098]
lea ecx, [esp + 0x28]
mov byte [esp + 0x100], bl
call dword [0x100350a0]
lea ecx, [esp + 0x44]
mov byte [esp + 0x100], 3
call dword [0x100350a0]
lea ecx, [esp + 0x68]
mov byte [esp + 0x100], 0
call dword [0x100351d4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x100], 0xffffffff
call dword [0x100350a0]
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push ebx
call dword [0x100351b4]
mov eax, dword [esi + 0x158]
add esp, 4
cmp dword [eax], 0xf1caca55
je 0x10002914
push str.the_database_file
lea ecx, [esp + 0xc4]
call dword [0x100350ac]
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0xe4]
push edx
mov byte [esp + 0x10c], 6
call dword [0x100350c0]
push str._is_corrupted
push eax
lea eax, [esp + 0xb8]
mov bl, 7
push eax
mov byte [esp + 0x118], bl
call dword [0x100350c4]
add esp, 0x18
push eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x104], 8
call dword [0x10035098]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x100], bl
call dword [0x100350a0]
lea ecx, [esp + 0xdc]
mov byte [esp + 0x100], 6
call dword [0x100350a0]
lea ecx, [esp + 0xc0]
mov byte [esp + 0x100], 3
call dword [0x100350a0]
lea ecx, [esp + 0x68]
mov byte [esp + 0x100], 0
call dword [0x100351d4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x100], 0xffffffff
call dword [0x100350a0]
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
add eax, 4
add dword [esi + 0xc0], 4
lea ecx, [esp + 0xc]
push ecx
adc dword [esi + 0xc4], 0
lea ecx, [esi + 0x198]
mov dword [esi + 0x158], eax
call dword [0x10035098]
lea ecx, [esp + 0x68]
mov byte [esi + 0x1d0], 0
mov byte [esp + 0x100], 0
call dword [0x100351d4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x100], 0xffffffff
call dword [0x100350a0]
mov ecx, dword [esp + 0xf8]
pop ebx
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0xf8
ret