Function at 0x5de030
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
push esi
push edi
mov edi, dword [ebx + 0x14]
push 4
push edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
call sym.postgres.exe_pq_getmsgint
mov esi, eax
add esp, 8
mov dword [ebp - 0x40], esi
test esi, esi
jns 0x5de0b0
push 0
push 0x743378
push 0x4d5
push str.src_backendutils_adt_arrayfuncs.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5de0b0
push esi
push str.invalid_number_of_dimensions:__d
call sym.postgres.exe_errmsg
add esp, 8
push eax
push 0x3020082
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
cmp esi, 6
jle 0x5de0fb
push 0
push 0x743378
push 0x4da
push str.src_backendutils_adt_arrayfuncs.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5de0fb
push 6
push esi
push str.number_of_array_dimensions___d__exceeds_the_maximum_allowed___d_
call sym.postgres.exe_errmsg
add esp, 0xc
push eax
push 0x105
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
push 4
push edi
call sym.postgres.exe_pq_getmsgint
add esp, 8
test eax, eax
je 0x5de152
cmp eax, 1
je 0x5de152
push 0
push 0x743378
push 0x4e0
push str.src_backendutils_adt_arrayfuncs.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5de152
push str.invalid_array_flags
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x3020082
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
push 4
push edi
call sym.postgres.exe_pq_getmsgint
add esp, 8
mov dword [ebp - 0x44], eax
cmp eax, dword [ebp - 0x4c]
je 0x5de1a8
push 0
push 0x743378
push 0x4e8
push str.src_backendutils_adt_arrayfuncs.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5de1a8
push str.wrong_element_type
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x4008084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
xor esi, esi
cmp dword [ebp - 0x40], esi
jle 0x5de224
nop
push 4
push edi
call sym.postgres.exe_pq_getmsgint
push 4
push edi
mov dword [ebp + esi*4 - 0x1c], eax
call sym.postgres.exe_pq_getmsgint
mov ecx, dword [ebp + esi*4 - 0x1c]
add esp, 0x10
mov dword [ebp + esi*4 - 0x34], eax
test ecx, ecx
je 0x5de21e
lea edx, [ecx + eax - 1]
cmp eax, edx
jle 0x5de21e
push 0
push 0x743378
push 0x4fb
push str.src_backendutils_adt_arrayfuncs.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5de21e
push str.integer_out_of_range
call sym.postgres.exe_errmsg
add esp, 4
push eax
push 0x3000082
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
inc esi
cmp esi, dword [ebp - 0x40]
jl 0x5de1b0
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x1c]
push eax
push ecx
call sym.postgres.exe_ArrayGetNItems
mov edi, eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
add esp, 8
test esi, esi
jne 0x5de262
mov edx, dword [eax + 0x14]
push 0x30
push edx
call sym.postgres.exe_MemoryContextAlloc
mov ecx, dword [ebx]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebx]
mov esi, dword [edx + 0x10]
mov ecx, eax
not ecx
add esp, 8
mov dword [esi], ecx
jmp 0x5de265
mov eax, dword [ebp - 0x44]
cmp dword [esi], eax
je 0x5de2fe
lea ecx, [esi + 0x10]
push ecx
lea edx, [esi + 0xc]
push edx
lea ecx, [esi + 8]
push ecx
lea edx, [esi + 7]
push edx
lea ecx, [esi + 6]
push ecx
lea edx, [esi + 4]
push edx
push 2
push eax
call sym.postgres.exe_get_type_io_data
add esp, 0x20
cmp dword [esi + 0x10], 0
jne 0x5de2e3
push 0
push 0x743378
push 0x51b
push str.src_backendutils_adt_arrayfuncs.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x5de2e3
mov eax, dword [ebp - 0x44]
push eax
call sym.postgres.exe_format_type_be
push eax
push str.no_binary_input_function_available_for_type__s
call sym.postgres.exe_errmsg
add esp, 0xc
push eax
push 0x3208084
call sym.postgres.exe_errcode
add esp, 4
push eax
call sym.postgres.exe_errfinish
add esp, 8
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x14]
mov ecx, dword [esi + 0x10]
push edx
lea eax, [esi + 0x14]
push eax
push ecx
call sym.postgres.exe_fmgr_info_cxt
mov edx, dword [ebp - 0x44]
add esp, 0xc
mov dword [esi], edx
test edi, edi
jne 0x5de337
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
push 0x10
push eax
call sym.postgres.exe_MemoryContextAllocZero
add esp, 8
xor ecx, ecx
pop edi
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x44]
pop esi
mov dword [eax], 0x40
mov dword [eax + 0xc], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 6]
movsx edx, word [esi + 4]
mov cl, byte [esi + 7]
mov byte [ebp - 0x58], al
lea eax, [edi*4]
mov byte [ebp - 0x54], cl
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
mov dword [ebp - 0x4c], edx
mov edx, dword [esi + 0xc]
push eax
push ecx
mov dword [ebp - 0x38], edx
call sym.postgres.exe_MemoryContextAlloc
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
push edi
push edx
mov ebx, eax
call sym.postgres.exe_MemoryContextAlloc
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x39]
push edx
mov edx, dword [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x38]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x50]
add esi, 0x14
push esi
push edi
call fcn.005da980
add esp, 0x38
cmp byte [ebp - 0x39], 0
je 0x5de3c1
mov ecx, dword [ebp - 0x40]
lea eax, [edi + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax + ecx*8 + 0x17]
and eax, 0xfffffff8
mov dword [ebp - 0x48], eax
jmp 0x5de3d5
mov edx, dword [ebp - 0x40]
lea eax, [edx*8 + 0x17]
mov dword [ebp - 0x48], 0
and eax, 0xfffffff8
add dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
push ecx
push edx
call sym.postgres.exe_MemoryContextAllocZero
mov edx, dword [ebp - 0x48]
mov esi, eax
mov eax, dword [ebp - 0x38]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x40]
mov dword [esi + 4], eax
add eax, eax
add eax, eax
push eax
mov dword [esi + 8], edx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x44]
push edx
lea eax, [esi + 0x10]
push eax
mov dword [esi + 0xc], ecx
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x50]
mov eax, dword [esi + 4]
push ecx
lea edx, [ebp - 0x34]
push edx
lea ecx, [esi + eax*4 + 0x10]
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x4c]
push 1
push edx
push eax
push ecx
push edi
mov edi, dword [ebp - 0x5c]
push edi
push ebx
mov ecx, esi
call fcn.005ddf20
push ebx
call sym.postgres.exe_pfree
add esp, 0x40
push edi
call sym.postgres.exe_pfree
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret