Function at 0x10044d50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x101d2014]
mov ebx, dword [ebp + 0xc]
mov edi, ecx
xor eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
cmp byte [ecx + 0xc], 0
jne 0x10044f8d
lea ecx, [ebx + 2]
cmp ecx, dword [edi + 0x14]
mov dword [esp + 0xc], ecx
jg 0x10044f8d
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 0x14]
test byte [ecx + 0x1c], 4
je 0x10044f4a
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x10044f4a
cmp dword [edx + 0x60], 0
je 0x10044dbc
call fcn.1001ee10
test eax, eax
jne 0x10045095
mov edx, dword [edi + 0x38]
movzx ebx, byte [edi + 9]
mov dword [esp + 0x18], 0
mov dword [esp + 4], edi
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
movzx edi, word [ebx + edx + 5]
lea esi, [eax + ecx*2]
mov ecx, ebx
shl edi, 0x10
bswap edi
cmp esi, edi
ja 0x1004506b
mov ebx, dword [ebp + 0xc]
cmp byte [ecx + edx + 2], 0
mov dword [esp + 8], edx
jne 0x10044ed7
cmp byte [ecx + edx + 1], 0
jne 0x10044ed7
add esi, dword [esp + 0xc]
cmp esi, edi
jg 0x10044fbe
sub edi, ebx
mov eax, edi
mov ebx, edi
rol ax, 8
mov word [edx + ecx + 5], ax
mov edi, dword [esp + 4]
movzx eax, word [esp + 0xc]
mov ecx, dword [ebp + 0x14]
sub dword [edi + 0x14], eax
test ecx, ecx
jne 0x10044f1c
lea eax, [edx + ebx]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [edi + 0x40]
mov edx, dword [esp + 0x14]
lea ecx, [eax + edx*2]
lea esi, [eax + edx*2 + 2]
movzx eax, word [edi + 0x18]
sub eax, edx
add eax, eax
push eax
push ecx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
rol bx, 8
mov word [esi - 2], bx
inc word [edi + 0x18]
movzx eax, byte [edi + 9]
mov ecx, dword [esp + 8]
inc byte [eax + ecx + 4]
je 0x1004509f
mov eax, dword [edi + 0x34]
cmp byte [eax + 0x11], 0
je 0x10044ec4
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10044ec4
mov ecx, dword [edi + 0x50]
call dword [section..00cfg]
lea esi, [esp + 0x18]
push esi
push ebx
push edi
call ecx
add esp, 0xc
movzx eax, word [esi + 0x10]
cmp dword [esi + 0xc], eax
ja 0x10045007
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.10192ef0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 2]
cmp eax, edi
jg 0x10044e0b
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0x18]
mov edx, ebx
push eax
call fcn.10047aa0
add esp, 4
test eax, eax
je 0x10044f71
mov edx, dword [esp + 8]
mov ebx, eax
sub ebx, edx
cmp ebx, esi
jg 0x10044e26
push 0x101b128f
push 0x10355
jmp 0x1004507c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea esi, [edx + ebx + 4]
add ecx, 0xfffffffc
add eax, 4
push ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp + 0x14]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [esi - 4], eax
jmp 0x10044e4f
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x10045095
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
ja 0x100450c7
call fcn.10029840
jmp 0x10044db4
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x10044e0b
jmp 0x10045095
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x10045043
mov esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x10045057
movzx eax, byte [edi + 0xc]
mov ecx, eax
inc cl
mov byte [edi + 0xc], cl
mov dword [edi + eax*4 + 0x24], esi
mov word [edi + eax*2 + 0x1c], dx
jmp 0x10044ec4
mov edi, ecx
mov ecx, dword [esp + 4]
mov esi, edx
mov edx, 4
mov eax, dword [ecx + 0x14]
sub eax, dword [esp + 0xc]
cmp eax, 5
cmovl edx, eax
call fcn.10047ba0
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10045095
movzx eax, byte [esi + edi + 5]
movzx ecx, byte [esi + edi + 6]
mov edx, esi
shl eax, 8
lea eax, [eax + ecx - 1]
mov ecx, edi
movzx edi, ax
inc edi
jmp 0x10044e17
mov ecx, dword [edi + 0x3c]
cmp ecx, ebx
jb 0x10045018
add eax, ebx
cmp ecx, eax
jb 0x100450d1
movzx eax, word [esp + 0x2a]
push dword [eax + ebx - 4]
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov ecx, dword [edi + 0x34]
mov edx, eax
push dword [ebp + 0x18]
push dword [edi + 4]
push 3
call fcn.1002c340
add esp, 0xc
jmp 0x10044ec4
push ebx
push eax
push esi
mov ebx, edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
add esp, 0xc
jmp 0x10044f9a
push eax
mov ebx, edx
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
mov edx, ebx
add esp, 4
mov dword [esi], eax
jmp 0x10044fa5
mov ebx, dword [ebp + 0xc]
test edi, edi
je 0x100450ac
push 0x101b128f
push 0x10343
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov eax, 0xb
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jmp 0x10044ec4
movzx eax, byte [edi + 9]
inc byte [eax + ecx + 3]
jmp 0x10044e8e
mov eax, dword [esp + 4]
mov edi, 0x10000
mov eax, dword [eax + 0x34]
cmp dword [eax + 0x28], 0x10000
je 0x10044df1
jmp 0x10045072
call fcn.100295e0
jmp 0x10044db4
mov esi, 0xb
push 0x101b128f
push 0x10244
push str.database_corruption
push str._s_at_line__d_of___.10s_
push esi
call sym.nss3.dll_sqlite3_log
add esp, 0x14
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
jmp 0x10044ec4