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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x30], edx
jb 0x1005d77b
mov edi, ecx
xor eax, eax
lea esi, [esp + 0x2c]
push eax
push eax
push esi
call fcn.1000e4a0
add esp, 0xc
test eax, eax
jne 0x1005d7a3
mov esi, dword [esp + 0x2c]
cmp byte [esi + 1], 0
jne 0x1005d7aa
mov edx, dword [ebp + 0xc]
mov byte [esi + 1], 1
movzx eax, byte [esi + 9]
mov dword [esp + 8], eax
cmp word [esi + 0x18], 0
jne 0x1005d709
cmp byte [esi + 8], 0
je 0x1005d7d2
mov eax, dword [ebp + 8]
test edx, edx
je 0x1005d67a
movzx ecx, word [esi + 0x18]
add dword [edx], ecx
test eax, eax
jne 0x1005d807
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x1005d6e9
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x1005d6e9
cmp dword [eax + 0x60], 0
je 0x1005d6a7
call fcn.10011230
mov ebx, eax
test eax, eax
jne 0x1005d6be
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 8]
movzx edx, byte [eax + ecx]
or edx, 8
mov ecx, esi
call fcn.10015170
xor ebx, ebx
mov byte [esi + 1], 0
mov ecx, dword [esi + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x1005d81e
call fcn.1001c870
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [eax + 0x28]
test ebx, ebx
jne 0x1005d6be
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
ja 0x1005d878
call fcn.10011a30
jmp 0x1005d6a1
xor ecx, ecx
movzx ebx, word [esi + 0x1a]
mov eax, dword [esi + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0xc], ecx
movzx eax, word [eax + ecx*2]
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ushort
add esp, 4
and eax, ebx
add eax, dword [esp + 4]
mov dword [esp + 4], eax
cmp byte [esi + 8], 0
je 0x1005d882
mov ecx, dword [esi + 0x50]
call dword [section..00cfg]
lea eax, [esp + 0x10]
push eax
push dword [esp + 8]
push esi
call ecx
add esp, 0xc
movzx eax, word [esp + 0x20]
cmp dword [esp + 0x1c], eax
mov edx, dword [ebp + 0xc]
jne 0x1005d8ae
mov ecx, dword [esp + 0xc]
inc ecx
movzx eax, word [esi + 0x18]
cmp ecx, eax
jae 0x1005d663
jmp 0x1005d70b
push 0x101c47ed
push 0x124af
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov ebx, 0xb
jmp 0x1005d6d4
mov ebx, eax
jmp 0x1005d6d4
push 0x101c47ed
push 0x124b4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov ebx, 0xb
jmp 0x1005d6be
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 8]
push dword [ecx + eax + 8]
mov ebx, edx
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, edi
mov edx, eax
push ebx
push 1
call fcn.1005d600
mov edx, ebx
add esp, 8
mov ebx, eax
test eax, eax
jne 0x1005d6be
jmp 0x1005d66d
mov ecx, dword [esi + 0x34]
mov edx, esi
push dword [esi + 4]
call fcn.1005cd70
add esp, 4
mov ebx, eax
jmp 0x1005d6be
mov esi, dword [ecx + 0x14]
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [esi + 0x88], ecx
mov eax, dword [ecx + 0x18]
dec eax
mov edx, dword [esi + 0x98]
mov edi, edx
sar edi, 0x1f
imul edi, eax
mul edx
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov esi, dword [esi + 0x3c]
add edx, edi
mov edi, edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x48]
call dword [section..00cfg]
push dword [esp + 0xc]
push edi
push dword [esp + 0x10]
push esi
call ecx
add esp, 0x10
jmp 0x1005d6d4
call fcn.10151ff0
jmp 0x1005d6a1
mov eax, dword [esp + 4]
push dword [eax]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, edi
mov edx, eax
push dword [ebp + 0xc]
push 1
call fcn.1005d600
add esp, 8
test eax, eax
je 0x1005d73e
jmp 0x1005d817
mov ecx, esi
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
call fcn.1004f090
mov edx, dword [ebp + 0xc]
add esp, 4
mov ebx, eax
test eax, eax
jne 0x1005d6be
jmp 0x1005d768