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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [0x101d2014]
mov esi, edx
mov edx, dword [ebp + 8]
xor eax, ebp
cmp edx, 2
mov dword [ebp - 0x10], eax
jb 0x10043839
cmp dword [ecx + 0x30], edx
mov ebx, ecx
jb 0x10043839
mov edi, dword [ebx + 0xc]
test esi, esi
je 0x10043861
mov eax, dword [esi + 0x48]
inc word [eax + 0x1e]
mov eax, dword [eax + 0xc]
inc dword [eax + 0xc]
mov ecx, dword [edi + 0x48]
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x1004376e
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x1004376e
cmp dword [eax + 0x60], 0
je 0x10043762
call fcn.1001ee10
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x100439ec
mov esi, dword [edi + 0x38]
mov dword [ebp - 0x24], edi
push dword [esi + 0x24]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov edi, eax
inc eax
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi + 0x24], eax
test byte [ebx + 0x18], 4
jne 0x1004386f
cmp byte [ebx + 0x11], 0
je 0x1004354b
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov ecx, ebx
push esi
push 0
push 2
call fcn.1002c340
add esp, 0xc
cmp dword [esi], 0
jne 0x100439ec
xor eax, eax
test edi, edi
mov edi, 0
jne 0x10043619
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
test esi, esi
je 0x10043907
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x100437a1
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x100437a1
cmp dword [eax + 0x60], 0
je 0x10043795
call fcn.1001ee10
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x10043937
mov ebx, esi
mov esi, dword [esi + 0x38]
push edi
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi], eax
mov esi, dword [ebx + 0x38]
push 0
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
mov esi, dword [eax + 0x38]
push dword [ebp + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi + 0x20], eax
mov byte [ebx], 0
mov ecx, dword [ebx + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x100438b1
call fcn.10025e90
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10043605
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x1004396c
call fcn.10025e90
jmp 0x100435ee
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x38]
push dword [eax + 0x20]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
cmp eax, dword [ebx + 0x30]
ja 0x100439c2
mov esi, dword [ebx]
mov edi, eax
mov ecx, dword [esi + 0xcc]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push 0
push eax
push edi
push esi
call ecx
add esp, 0x10
test eax, eax
jne 0x100439e9
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
cmp dword [edx + 4], edi
mov dword [ebp - 0x20], edx
jne 0x100439f8
mov esi, dword [edx + 0x38]
lea eax, [edx + 0x38]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], esi
push dword [esi + 4]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov esi, eax
mov eax, dword [ebx + 0x28]
shr eax, 2
lea ecx, [eax - 2]
cmp esi, ecx
ja 0x10043a1f
add eax, 0xfffffff8
cmp esi, eax
mov eax, dword [ebp - 0x20]
jae 0x1004355a
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x28], ebx
mov eax, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x100437d9
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x18]
jb 0x100437d9
cmp dword [eax + 0x60], 0
mov edi, dword [ebp - 0x2c]
je 0x100437c8
call fcn.1001ee10
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x10043752
mov ebx, esi
mov esi, dword [edi]
mov eax, ebx
inc eax
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi + 4], eax
mov edi, dword [edi]
push dword [ebp + 8]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [edi + ebx*4 + 8], eax
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x10043734
test byte [ebx + 0x18], 4
jne 0x10043734
mov eax, dword [eax + 0x48]
mov edx, dword [eax + 0x14]
cmp byte [edx + 0xc], 0
jne 0x10043734
movzx ecx, word [eax + 0x1c]
test cl, 2
je 0x10043734
cmp dword [edx + 0x60], 0
je 0x10043a49
mov esi, dword [ebx + 0x40]
test esi, esi
je 0x10043803
mov edx, dword [ebp + 8]
xor eax, eax
cmp dword [esi], edx
jb 0x1004374f
mov ecx, esi
call fcn.10020d90
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jne 0x100435d2
jmp 0x100435e7
mov dword [ebp - 0x18], 0
jmp 0x100434fd
mov edx, dword [eax + 0x28]
test edx, edx
jne 0x10043a8f
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
ja 0x10043a97
call fcn.10029840
jmp 0x100434f2
mov dword [ebp - 0x18], 0
jmp 0x1004359e
mov edx, dword [eax + 0x28]
test edx, edx
jne 0x10043ad7
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
ja 0x10043ae2
call fcn.10029840
jmp 0x10043593
mov ebx, esi
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0
jmp 0x100436e5
mov edx, dword [eax + 0x28]
mov edi, dword [ebp - 0x2c]
test edx, edx
jne 0x10043ada
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
ja 0x10043aec
call fcn.10029840
jmp 0x100436da
mov edi, dword [ebx + 0x30]
mov ecx, 0x200
xor edx, edx
call fcn.10002c70
test eax, eax
je 0x10043af6
mov esi, eax
add eax, 4
push 0x1fc
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], edi
mov dword [ebx + 0x40], esi
jmp 0x1004373f
push 0x101b128f
push 0x11545
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov esi, 0xb
jmp 0x100435f1
mov ecx, ebx
call fcn.100433f0
mov esi, eax
jmp 0x100434c4
cmp dword [ebp - 0x1c], 0
je 0x1004393f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x48]
call fcn.100087b0
test eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
jne 0x10043752
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x34]
push dword [eax + 0x24]
push 0
push dword [ecx + 0x38]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10043527
mov ebx, dword [ecx + 0x14]
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x10], eax
mov dword [ebx + 0x88], ecx
mov edx, dword [ebx + 0x98]
mov eax, dword [ecx + 0x18]
mov ebx, dword [ebx + 0x3c]
mov esi, edx
dec eax
sar esi, 0x1f
imul esi, eax
mul edx
mov edi, edx
mov edx, dword [ecx + 4]
mov ecx, dword [ebx]
mov dword [ebp - 0x1c], eax
add edi, esi
mov ecx, dword [ecx + 0x48]
mov dword [ebp - 0x24], edx
call dword [section..00cfg]
push dword [ebp - 0x24]
push edi
push dword [ebp - 0x1c]
push ebx
call ecx
add esp, 0x10
jmp 0x100435e7
mov esi, dword [ebx]
mov dword [ebp - 0x28], ebx
mov ecx, dword [esi + 0xcc]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp + 8]
push esi
call ecx
add esp, 0x10
test eax, eax
je 0x10043a58
mov dword [ebp - 0x18], eax
jmp 0x100435e7
mov dword [ebp - 0x1c], esi
jmp 0x10043752
mov esi, dword [ebx]
mov ecx, dword [esi + 0xcc]
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp + 8]
push esi
call ecx
add esp, 0x10
test eax, eax
je 0x10043aa1
mov dword [ebp - 0x18], eax
jmp 0x100435ee
mov ebx, dword [ecx + 0x14]
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x10], eax
mov dword [ebx + 0x88], ecx
mov edx, dword [ebx + 0x98]
mov eax, dword [ecx + 0x18]
mov ebx, dword [ebx + 0x3c]
mov esi, edx
dec eax
sar esi, 0x1f
imul esi, eax
mul edx
mov edi, edx
mov edx, dword [ecx + 4]
mov ecx, dword [ebx]
mov dword [ebp - 0x1c], eax
add edi, esi
mov ecx, dword [ecx + 0x48]
mov dword [ebp - 0x20], edx
call dword [section..00cfg]
push dword [ebp - 0x20]
push edi
push dword [ebp - 0x1c]
push ebx
call ecx
add esp, 0x10
jmp 0x100435ee
mov esi, 0xb
push 0x101b128f
push 0x11574
push str.database_corruption
push str._s_at_line__d_of___.10s_
push esi
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov dword [ebp - 0x18], esi
jmp 0x100439ec
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
jmp 0x10043752
mov esi, dword [eax + 4]
mov ecx, 0x64
mov dword [edx + 0x38], esi
mov dword [edx + 0x48], eax
xor eax, eax
cmp edi, 1
mov dword [edx + 0x34], ebx
mov dword [edx + 4], edi
cmovne ecx, eax
lea eax, [edx + 0x38]
mov byte [edx + 9], cl
jmp 0x10043670
mov esi, 0xb
push 0x101b128f
push 0x1157f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push esi
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov dword [ebp - 0x18], esi
jmp 0x10043752
and ecx, 0xffffffeb
or ecx, 0x10
mov word [eax + 0x1c], cx
jmp 0x10043734
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp dword [ecx + 4], edx
mov esi, ecx
je 0x10043a83
mov ecx, dword [eax + 4]
mov edx, esi
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x38], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x48], eax
mov dword [esi + 0x34], edx
mov dword [esi + 4], ecx
mov byte [esi + 9], 0
mov dword [ebp - 0x18], 0
jmp 0x10043568
mov dword [ebp - 0x18], edx
jmp 0x100439ec
call fcn.100295e0
jmp 0x100434f2
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp dword [ecx + 4], edx
mov dword [ebp - 0x1c], ecx
je 0x10043acb
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x38], ecx
mov ecx, dword [ebp + 8]
mov dword [edx + 0x48], eax
mov dword [edx + 0x34], ebx
mov dword [edx + 4], ecx
mov byte [edx + 9], 0
mov dword [ebp - 0x18], 0
jmp 0x10043879
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edx
jmp 0x10043752
call fcn.100295e0
jmp 0x10043593
call fcn.100295e0
jmp 0x100436da
mov dword [ebx + 0x40], 0
mov eax, 7
jmp 0x1004374f