Function at 0x10058730
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebx, ecx
mov dword [esp + 0x18], edx
push edi
mov ecx, 0x101080ea
mov dword [esp + 0x34], ebx
call fcn.100de193
mov eax, dword [ebx + 0x38]
mov ecx, dword [esp + 0x40]
movzx ebp, word [ebx + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x40]
lea eax, [eax + ecx*2]
add ecx, esi
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 0xc]
add eax, ebp
mov dword [esp + 0x18], ecx
add eax, edx
mov dword [esp + 0x20], eax
cmp edx, esi
jge 0x100587f7
mov eax, esi
mov ecx, ebx
sub eax, edx
push edi
push eax
call fcn.10058640
mov edx, eax
add esp, 8
mov dword [esp + 0x24], edx
cmp edx, ebp
jle 0x100587d3
push 0x100f9e64
push 0x11658
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10042300
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, dword [ebx + 0x40]
lea eax, [ebp*2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x2c]
add esp, 0xc
sub ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x1005880d
sub eax, ecx
mov edx, ecx
push edi
push eax
mov ecx, ebx
call fcn.10058640
add esp, 8
sub ebp, eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
movzx ecx, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
or ecx, eax
dec ecx
movzx eax, cx
inc eax
add eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x100589b6
mov eax, dword [esp + 0x1c]
mov edx, esi
cmp edx, eax
jge 0x1005889c
mov esi, dword [ebx + 0x40]
sub eax, edx
mov edx, dword [esp + 0x40]
cmp edx, eax
cmovge edx, eax
lea eax, [ebp*2]
push eax
push esi
mov dword [esp + 0x28], edx
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x48]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov ecx, ebx
push edi
push dword [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.100584e0
add esp, 0x14
test eax, eax
jne 0x100589b2
add ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp byte [ebx + 0xc], cl
jbe 0x1005894a
lea eax, [ebx + 0x1c]
mov dword [esp + 0x20], eax
movzx esi, word [eax]
sub esi, edx
add esi, dword [esp + 0x1c]
js 0x1005892e
cmp esi, dword [esp + 0x40]
jge 0x1005892e
mov eax, dword [ebx + 0x40]
lea ecx, [eax + esi*2]
mov dword [esp + 0x2c], ecx
cmp ebp, esi
jle 0x100588e9
mov eax, ebp
sub eax, esi
add eax, eax
push eax
push ecx
lea eax, [ecx + 2]
push eax
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [esp + 0x48]
add esp, 0xc
mov eax, dword [edi + 0xc]
add esi, edx
inc ebp
cmp word [eax + esi*2], 0
jne 0x100588ff
mov edx, esi
mov ecx, edi
call fcn.100582a0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
push 1
push esi
push dword [esp + 0x38]
mov ecx, ebx
push eax
call fcn.100584e0
add esp, 0x14
test eax, eax
jne 0x100589b2
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add eax, 2
inc ecx
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xc]
cmp ecx, eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x20]
jl 0x100588b2
mov eax, dword [ebx + 0x40]
mov esi, dword [esp + 0x40]
push edi
lea ecx, [eax + ebp*2]
mov eax, esi
sub eax, ebp
push eax
lea eax, [edx + ebp]
mov edx, dword [esp + 0x1c]
push eax
push ecx
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.100584e0
add esp, 0x14
test eax, eax
jne 0x100589b2
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
movzx eax, si
mov word [ebx + 0x18], ax
shr eax, 8
mov byte [ebx + 0xc], 0
mov byte [edx + 3], al
mov al, byte [ebx + 0x18]
mov ebx, dword [esp + 0x28]
mov byte [edx + 4], al
mov eax, ecx
sub eax, ebx
sub cl, bl
sar eax, 8
mov byte [edx + 5], al
xor eax, eax
mov byte [edx + 6], cl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ebx, eax
test eax, eax
jle 0x10058a02
mov eax, dword [esp + 0x3c]
add esi, esi
lea ebp, [eax*4]
nop dword [eax]
mov eax, dword [edi + 0xc]
cmp word [esi + eax], 0
jne 0x100589f3
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push dword [eax + ebp]
mov eax, dword [ecx + 0x4c]
push ecx
call eax
mov ecx, dword [edi + 0xc]
add esp, 8
mov word [esi + ecx], ax
dec ebx
add ebp, 4
add esi, 2
test ebx, ebx
jg 0x100589d0
mov eax, dword [esp + 0x40]
push dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov ecx, edi
push eax
call fcn.100582e0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret