Function at 0x5b7c70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
mov eax, dword [0x93e25c]
push ebx
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0xac], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [ebx]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], eax
test dword [ebp + 0x98], 0x400000
push edi
mov dword [esp + 0x14], esi
jne 0x5b7cc1
push str.__check_key_delete_chain
call fcn.006d1e04
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc8]
mov dword [ebp + 0x30], ecx
mov edx, dword [eax + 0xcc]
mov dword [ebp + 0x34], edx
mov ecx, dword [ebx]
mov dl, byte [ecx + 0x15]
xor eax, eax
xor edi, edi
test dl, dl
jbe 0x5b7d03
push ebx
push ebp
mov ecx, edi
call fcn.005b1250
add esp, 8
test eax, eax
jne 0x5b7dfc
mov edx, dword [ebx]
movzx eax, byte [edx + 0x15]
inc edi
cmp edi, eax
jb 0x5b7ce2
xor eax, eax
test dword [ebp + 0x98], 0x400000
jne 0x5b7d1e
push str.__check_index_reference
call fcn.006d1e04
add esp, 4
xor eax, eax
mov ecx, dword [ebp + 0x60]
mov dword [esp + 0x54], ecx
mov cl, byte [esi + 0x1f8]
xor edi, edi
test cl, 5
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], edi
jne 0x5b7d6e
mov eax, dword [ebx + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea eax, [edx + eax - 1]
call fcn.005b1b90
mov edi, eax
imul edi, dword [esi + 0xf8]
mov dword [esp + 0x50], edi
xor eax, eax
mov edx, dword [esi + 0x18c]
lea ecx, [ebp + 0x864]
mov dword [esp + 0x48], ecx
cmp dword [esi + 0x118], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], edx
jbe 0x5b83c1
mov esi, dword [esp + 0x44]
mov eax, 1
xor edx, edx
mov ecx, esi
mov dword [ebp + esi*4 + 0x468], 0
call fcn.006cfb80
mov ecx, dword [esp + 0x14]
and eax, dword [ecx + 0x90]
and edx, dword [ecx + 0x94]
or eax, edx
jne 0x5b7e3d
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x70]
mov edx, edi
sub edx, ebp
shl ecx, 2
sub edx, 0x864
sar edx, 2
lea esi, [eax + edx*4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x5b8386
test dword [ebp + 0x98], 0x10000000
je 0x5b7e15
push 0x73a01c
call fcn.006d1e04
add esp, 4
push str.key_delete_link_chain_corrupted
push ebp
call fcn.004012fd
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xa8]
call fcn.006cedd0
add esp, 0xac
ret
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x54]
inc ecx
mov dword [esp + 0x20], ecx
mov dword [ebp + 0x60], eax
xor eax, eax
lea edi, [ebp + 0x358]
mov ecx, 0x22
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x3e0]
mov ecx, 0x22
rep stosd dword es:[edi], eax
test dword [ebp + 0x98], 0x400000
jne 0x5b7e86
lea ecx, [esi + 1]
push ecx
push str.__check_data_record_references_index:__d_n
call fcn.006d1d9e
add esp, 8
mov edx, dword [esp + 0x10]
mov dx, word [edx + 6]
and dx, 0x80
je 0x5b7e99
inc dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x74]
mov eax, dword [ecx + esi*8]
mov ecx, dword [ecx + esi*8 + 4]
mov edi, eax
and edi, ecx
cmp edi, 0xffffffff
jne 0x5b7ec5
mov edi, dword [ebx + 4]
cmp dword [edi], 0
je 0x5b8341
test dx, dx
jne 0x5b8341
mov edx, dword [ebx + 0x64]
xor edi, edi
push edi
push edx
push 3
push ecx
push eax
mov eax, dword [esp + 0x24]
push eax
push ebx
call fcn.005cd970
add esp, 0x1c
test eax, eax
jne 0x5b7f13
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x74]
lea ecx, [esp + 0x88]
push ecx
mov ecx, dword [eax + esi*8 + 4]
mov edx, dword [eax + esi*8]
push ecx
push edx
call fcn.006313d0
push eax
push str.Cant_read_indexpage_from_filepos:__s
push ebp
call fcn.004012fd
add esp, 0x18
jmp 0x5b8201
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + 0xa]
cdq
add dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x34]
push 1
adc eax, edx
mov dword [ebp + 0x34], eax
lea eax, [ebp + esi*4 + 0x468]
push eax
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x44], edi
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x94], edi
mov edx, dword [ebx + 0x64]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push edx
mov dword [esp + 0x34], edi
mov edx, dword [eax + 0x74]
mov eax, dword [edx + esi*8 + 4]
mov edx, dword [edx + esi*8]
push eax
push edx
push ecx
push ebx
push ebp
call fcn.005b4760
add esp, 0x24
test eax, eax
jne 0x5b7e23
mov eax, dword [esp + 0x10]
test word [eax + 6], 0x480
jne 0x5b8000
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
cmp dword [esp + 0x24], eax
je 0x5b7fcd
lea edx, [esp + 0xa0]
push edx
push edi
push eax
call fcn.006313d0
mov ecx, dword [esp + 0x30]
add esp, 0xc
push eax
lea eax, [esp + 0x8c]
push eax
push edi
push ecx
call fcn.006313d0
add esp, 0xc
push eax
push str.Found__s_keys_of__s
push ebp
call fcn.004012fd
add esp, 0x10
jmp 0x5b8201
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x40]
cmp edx, 1
jne 0x5b81d0
mov eax, dword [esp + 0x14]
test byte [eax + 0x1f8], 5
jne 0x5b7ff9
mov eax, dword [ebp + 0x98]
test dl, ah
je 0x5b81d0
mov ecx, dword [ebp + 0x60]
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x11c]
dec ecx
cmp ecx, esi
jne 0x5b8140
mov edx, dword [ebx + 0x74]
push edx
push edi
push edi
push ebx
mov dword [ebx + 0xf0], esi
call fcn.005c33b0
mov eax, dword [ebx + 0x74]
push eax
push ebx
call fcn.005c3440
mov ecx, dword [ebx]
mov edi, edx
mov edx, dword [ecx + 0x5c]
add esp, 0x18
cmp edi, edx
mov dword [esp + 0x80], eax
jb 0x5b808e
ja 0x5b804b
cmp eax, dword [ecx + 0x58]
jbe 0x5b808e
lea ecx, [esp + 0x88]
push ecx
push edi
push eax
call fcn.006313d0
add esp, 0xc
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5c]
lea edx, [esp + 0xa4]
push edx
mov edx, dword [eax + 0x58]
push ecx
push edx
call fcn.006313d0
add esp, 0xc
push eax
push str.Auto_increment_value:__s_is_smaller_than_max_used_value:__s
push ebp
call fcn.0040ad03
mov eax, dword [esp + 0x90]
add esp, 0x10
test byte [ebp + 0x98], 1
je 0x5b80cd
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x5c]
cmp edx, edi
ja 0x5b80af
jb 0x5b80a9
mov edx, dword [ecx + 0x58]
cmp edx, eax
jae 0x5b80af
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edi
mov eax, dword [ebx]
mov ecx, dword [ebp + 4]
mov edi, dword [eax + 0x5c]
cmp edi, ecx
mov edx, dword [ebp]
ja 0x5b80cd
jb 0x5b80c7
mov edi, dword [eax + 0x58]
cmp edi, edx
jae 0x5b80cd
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], ecx
push 0
push 7
push ebx
call fcn.005aaf80
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x1c]
movzx ecx, word [ecx + 0x10]
mov edi, dword [ebx + 0x68]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x1c]
movzx edx, word [ecx + 0x10]
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x74]
push 0
push edx
push eax
push esi
push ecx
push ebx
call fcn.005bd2d0
add esp, 0x24
test eax, eax
jne 0x5b8133
mov esi, dword [ebp + 0x80]
push str.Found_row_where_the_auto_increment_column_has_the_value_0
push ebp
call fcn.0040ad03
add esp, 8
mov dword [ebp + 0x80], esi
push 0
push 8
push ebx
call fcn.005aaf80
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
mov ecx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x208]
mov dl, byte [ecx + 0x12]
add ecx, 0x12
test dl, dl
je 0x5b816e
lea esp, [esp]
movzx edx, word [ecx - 2]
add ecx, 0x18
add eax, edx
cmp byte [ecx], 0
jne 0x5b8160
mul dword [esp + 0x24]
mov ecx, dword [ebp + 0x48]
push 0
mov edi, eax
mov eax, dword [ebp + 0x4c]
push 2
push eax
push ecx
mov esi, edx
call fcn.006cfc20
add edi, eax
mov eax, dword [ebp + 0x98]
adc esi, edx
test ah, 0x20
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
je 0x5b82f9
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x44]
or eax, ecx
je 0x5b82f9
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5b82f9
test esi, esi
jl 0x5b821d
jg 0x5b81c6
test edi, edi
jb 0x5b821d
fild qword [esp + 0x68]
fst qword [esp + 0x60]
jmp 0x5b822d
mov edx, dword [esp + 0x50]
cmp edx, dword [ebp + 0x60]
je 0x5b8000
cmp esi, edi
je 0x5b81f3
inc esi
push esi
push str.Key__u_doesnt_point_at_same_records_that_key_1
push ebp
call fcn.004012fd
add esp, 0xc
jmp 0x5b8201
push str.Key_1_doesnt_point_at_all_records
push ebp
call fcn.004012fd
add esp, 8
mov eax, dword [ebp + 0x98]
test ah, 0x20
je 0x5b7e23
mov dword [esp + 0x4c], 0xffffffff
jmp 0x5b8386
fild qword [esp + 0x68]
fld qword [0x73b330]
fadd st(1)
fstp qword [esp + 0x60]
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jl 0x5b824d
jg 0x5b8247
mov edx, eax
test edx, edx
jb 0x5b824d
fild qword [esp + 0x38]
jmp 0x5b8257
fild qword [esp + 0x38]
fadd qword [0x73b330]
test esi, esi
fstp qword [esp + 0x58]
jl 0x5b8265
jg 0x5b826b
test edi, edi
jae 0x5b826b
fadd qword [0x73b330]
test ecx, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
jl 0x5b8283
jg 0x5b827d
test eax, eax
jb 0x5b8283
fild qword [esp + 0x70]
jmp 0x5b828d
fild qword [esp + 0x70]
fadd qword [0x73b330]
mov eax, dword [ebp + 0x44]
test eax, eax
mov ecx, dword [ebp + 0x40]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
jl 0x5b82ab
jg 0x5b82a5
test ecx, ecx
jb 0x5b82ab
fild qword [esp + 0x78]
jmp 0x5b82b5
fild qword [esp + 0x78]
fadd qword [0x73b330]
fld qword [esp + 0x60]
mov edx, dword [ebp + 0x94]
fsub qword [esp + 0x58]
push edx
fdiv st(3)
fmul qword [0x7cc070]
call fcn.006cfba0
fxch st(1)
fdiv st(1)
push eax
fmul qword [0x7cc070]
call fcn.006cfba0
fstp st(0)
push eax
fstp st(0)
mov eax, dword [esp + 0x50]
inc eax
push eax
push str.Key:__2d:__Keyblocks_used:__3d____Packed:__4d____Max_levels:__2d_n
call fcn.006d1d9e
add esp, 0x14
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add edx, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x3c]
adc eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x40]
add ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x44]
adc edx, ecx
mov ecx, dword [esp + 0x30]
add ecx, edi
adc eax, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
test dword [ebp + 0x98], 0x2000000
je 0x5b8386
mov edi, dword [ebp + 0x4834]
mov ecx, dword [ebx + 4]
xor edx, edx
cmp edi, 2
setne dl
push 0
lea eax, [ebp + 0x3e0]
dec edx
and eax, edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
push edx
push eax
lea eax, [ebp + 0x358]
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
call fcn.005b43c0
add esp, 0x18
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + 4]
mov eax, dword [esp + 0x48]
add ecx, 0x3c
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
mov edx, dword [ecx + 0x118]
inc eax
cmp eax, edx
mov dword [esp + 0x44], eax
jb 0x5b7d92
mov edi, dword [esp + 0x50]
mov esi, ecx
mov eax, dword [ebp + 0x98]
test ah, 0x20
je 0x5b84e8
mov edx, dword [esp + 0x18]
or edx, dword [esp + 0x1c]
je 0x5b84e8
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x5b84cd
mov ecx, dword [esp + 0x34]
test ecx, ecx
jl 0x5b8406
jg 0x5b83fc
mov eax, dword [esp + 0x30]
test eax, eax
jb 0x5b8406
fild qword [esp + 0x30]
fst qword [esp + 0x38]
jmp 0x5b8414
fild qword [esp + 0x30]
fst qword [esp + 0x38]
fadd qword [0x73b330]
mov eax, dword [esp + 0x2c]
test eax, eax
jl 0x5b8430
jg 0x5b8426
mov edx, dword [esp + 0x28]
test edx, edx
jb 0x5b8430
fild qword [esp + 0x28]
fst qword [esp + 0x58]
jmp 0x5b8440
fild qword [esp + 0x28]
fld qword [0x73b330]
fadd st(1)
fstp qword [esp + 0x58]
test ecx, ecx
jl 0x5b8454
jg 0x5b844e
mov ecx, dword [esp + 0x30]
test ecx, ecx
jb 0x5b8454
fld qword [esp + 0x38]
jmp 0x5b845e
fld qword [esp + 0x38]
fadd qword [0x73b330]
test eax, eax
fstp qword [esp + 0x60]
jl 0x5b8470
jg 0x5b8476
mov eax, dword [esp + 0x28]
test eax, eax
jae 0x5b8476
fadd qword [0x73b330]
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x5b848e
jg 0x5b8488
mov eax, dword [esp + 0x18]
test eax, eax
jb 0x5b848e
fild qword [esp + 0x18]
jmp 0x5b8498
fild qword [esp + 0x18]
fadd qword [0x73b330]
fxch st(2)
fsub qword [esp + 0x58]
fdiv qword [esp + 0x60]
fmul qword [0x7cc070]
call fcn.006cfba0
fdiv st(1)
push eax
fmul qword [0x7cc070]
call fcn.006cfba0
fstp st(0)
push eax
push str.Total:____Keyblocks_used:__3d____Packed:__4d___n_n
call fcn.006d1d9e
add esp, 0xc
jmp 0x5b84e8
mov eax, dword [esi + 0x90]
or eax, dword [esi + 0x94]
je 0x5b84e8
push 0x73a01c
call fcn.006d1e04
add esp, 4
mov ebx, dword [ebx + 4]
mov ecx, dword [ebp + 0x30]
cmp ecx, dword [ebx + 0x18]
jne 0x5b84fb
mov edx, dword [ebp + 0x34]
cmp edx, dword [ebx + 0x1c]
je 0x5b8514
mov eax, dword [ebp + 0x10]
and eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x5b8514
push str.Some_data_are_unreferenced_in_keyfile
push ebp
call fcn.0040ad03
add esp, 8
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x20], ecx
je 0x5b8527
sub edi, dword [esp + 0x54]
mov dword [ebp + 0x60], edi
jmp 0x5b852e
mov dword [ebp + 0x60], 0
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.006cedd0
add esp, 0xac
ret