Function at 0x10122e50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov esi, dword [edi]
mov dword [esp + 0x1c], esi
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x14], ecx
mov ebx, dword [ecx + 0x40]
mov dword [eax], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], 0
mov dword [eax], 0
mov eax, dword [esp + 0x3c]
cmp dword [eax], 2
jne 0x10122ebc
mov dword [eax], 1
mov eax, dword [esi + 0x74]
mov eax, dword [eax + 0x40]
mov eax, dword [eax]
test eax, eax
je 0x10122ebc
push eax
push esi
call fcn.100dbf50
add esp, 8
test eax, eax
jne 0x10123126
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov eax, dword [ebx + 0x30]
mov ebp, dword [ebx + 0x34]
mov dword [edx], eax
mov dword [edx + 4], ebp
cmp dword [ebx + 0x194], 0
jne 0x10122ede
mov eax, dword [ebx + 0x44]
cmp ebp, eax
jbe 0x10122ede
mov dword [edx + 4], eax
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x10122eee
cmp dword [ebx + 0x34], eax
je 0x10123293
mov ebp, dword [esp + 0x38]
mov edx, dword [ebp]
cmp edx, eax
jne 0x10122f05
mov eax, dword [ebp + 4]
cmp eax, dword [ebx + 0x34]
je 0x1012322d
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
jns 0x1012322d
cmp dword [ebx + 0x194], 0
je 0x10122f37
lea eax, [esp + 0x10]
push eax
push ebp
push ecx
call fcn.1013ed00
add esp, 0xc
test eax, eax
je 0x10122f5c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [ebx + 0x40], 0
je 0x10123293
cmp edx, dword [ebx + 0x38]
jne 0x10122f4e
mov eax, dword [ebp + 4]
cmp eax, dword [ebx + 0x3c]
je 0x10122f5c
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
js 0x10123293
mov dword [edi + 0x48], 0
cmp dword [ebx + 0x194], 0
jne 0x10122f95
mov eax, dword [ebp]
cmp eax, dword [ebx + 0x38]
lea eax, [ebp + 4]
mov dword [esp + 0x18], eax
jne 0x10122f82
mov ecx, dword [eax]
cmp ecx, dword [ebx + 0x3c]
je 0x10122fd5
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
test ecx, ecx
jle 0x10122fd9
mov eax, dword [eax]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
push dword [eax + 0x30]
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.1013eca0
add esp, 0x10
test byte [esi + 0x9c], 4
jne 0x101231e3
xor eax, eax
cmp dword [esi + 0x6c], eax
mov esi, dword [esp + 0x44]
setne al
push eax
push esi
call fcn.10121e40
add esp, 8
jmp 0x101231e7
mov dword [esp + 0x18], eax
mov ecx, dword [ebx + 0x44]
sub ecx, dword [eax]
mov ebp, dword [ebx + 0x40]
mov edx, dword [ebx + 0x48]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
cmp ebp, edx
jbe 0x10123093
mov eax, dword [esp + 0x14]
sub ebp, edx
push dword [edi + 0x30]
add ebp, dword [eax + 0x20]
push ebp
push edi
call fcn.102207f0
add esp, 0xc
test byte [esi + 0x9c], 4
jne 0x10123069
mov esi, dword [esi + 0x6c]
test esi, esi
mov bl, byte [edi]
mov dl, byte [edi + 1]
mov cl, byte [edi + 2]
movzx eax, byte [edi + 3]
mov esi, dword [esp + 0x1c]
mov byte [edi], al
mov al, byte [edi + 7]
mov byte [edi + 1], cl
mov cl, byte [edi + 6]
mov byte [edi + 2], dl
mov dl, byte [edi + 5]
mov byte [edi + 3], bl
mov bl, byte [edi + 4]
mov byte [edi + 4], al
mov byte [edi + 5], cl
mov byte [edi + 6], dl
mov byte [edi + 7], bl
jne 0x10123065
mov bl, byte [edi + 8]
mov dl, byte [edi + 9]
mov cl, byte [edi + 0xa]
mov al, byte [edi + 0xb]
mov byte [edi + 8], al
mov byte [edi + 9], cl
mov byte [edi + 0xa], dl
mov byte [edi + 0xb], bl
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [edi]
cmp ecx, dword [eax]
mov eax, dword [esp + 0x14]
je 0x10123081
mov ebp, ecx
sub ebp, dword [ebx + 0x44]
jmp 0x10122ffa
sub ebp, dword [eax + 0x20]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x34]
add ecx, ebp
mov dword [esp + 0x10], ebp
mov esi, dword [ebx + 0x44]
cmp esi, ecx
ja 0x101230dd
lea eax, [ebx + 0x40]
lea esi, [ecx*2 + 0x7f]
mov dword [esp + 0x2c], eax
push eax
and esi, 0xffffff80
push esi
push dword [ebx]
call fcn.100dc870
add esp, 0xc
test eax, eax
jne 0x10123232
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
add eax, 4
mov dword [ebx + 0x44], esi
mov ebx, dword [esp + 0x2c]
jmp 0x101230e0
add ebx, 0x40
mov dword [esp + 0x24], eax
sub esi, ebp
mov eax, dword [esp + 0x14]
add esi, dword [ebx]
push ebp
push dword [eax + 0x20]
push esi
call fcn.102207f0
mov eax, dword [esp + 0x48]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
cmp dword [eax], 1
jne 0x10123139
mov dword [eax], 2
mov eax, dword [ebp + 0x74]
mov eax, dword [eax + 0x40]
mov eax, dword [eax]
test eax, eax
je 0x10123133
push eax
push ebp
call fcn.100dc5b0
add esp, 8
test eax, eax
je 0x10123133
pop edi
pop esi
pop ebp
mov eax, 0xffff8702
pop ebx
add esp, 0x20
ret
mov ebx, dword [esp + 0x24]
jmp 0x1012313d
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x101231ab
sub esi, eax
mov dword [esp + 0x28], eax
push 0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x40]
push esi
push dword [ebx]
push dword [eax]
push dword [esp + 0x48]
call fcn.101232a0
add esp, 0x18
test eax, eax
jne 0x10123232
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x28], eax
jae 0x101231a1
push dword [ebx]
mov eax, dword [esp + 0x3c]
push dword [eax]
mov eax, dword [esp + 0x3c]
push str.DB_LOGC__get:_LSN:__lu__lu:_short_read
push dword [eax]
call fcn.100d0920
add esp, 0x10
mov eax, 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x4c]
mov dword [eax], 1
push dword [edi + 0x30]
push esi
push edi
call fcn.102207f0
add esp, 0xc
test byte [ebp + 0x9c], 4
jne 0x101231d3
xor eax, eax
cmp dword [ebp + 0x6c], eax
setne al
push eax
push edi
call fcn.10121e40
add esp, 8
mov eax, dword [esp + 0x48]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x34]
push eax
push esi
push ebp
push edi
call fcn.10122da0
add esp, 0x10
test eax, eax
jne 0x1012322d
cmp dword [esp + 0x34], eax
jne 0x10123293
mov edx, dword [esp + 0x10]
cmp dword [ebx + 0x194], eax
je 0x1012323a
mov ecx, dword [ebx + 0x40]
cmp edx, ecx
jae 0x1012321c
sub ecx, edx
jmp 0x10123226
mov eax, dword [ebx + 0x180]
sub eax, edx
add ecx, eax
mov eax, dword [esi + 4]
cmp ecx, eax
jae 0x10123250
mov eax, 0xffff86f4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [ebx + 0x180]
mov eax, dword [ebp + 4]
add ecx, dword [ebx + 0x44]
add eax, dword [esi + 4]
cmp eax, ecx
ja 0x1012322d
mov eax, dword [esi + 4]
lea ebx, [edi + 0x40]
cmp dword [edi + 0x44], eax
ja 0x10123279
lea ebp, [eax*2 + 0x7f]
push ebx
and ebp, 0xffffff80
push ebp
push dword [edi]
call fcn.100dc870
add esp, 0xc
test eax, eax
jne 0x10123232
mov edx, dword [esp + 0x10]
mov dword [edi + 0x44], ebp
push dword [esi + 4]
push dword [ebx]
push edx
push dword [esp + 0x20]
call fcn.1013eca0
mov ecx, dword [esp + 0x58]
add esp, 0x10
mov eax, dword [ebx]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret