Function at 0x10128700
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
lea edi, [esp + 0x14]
movzx ecx, byte [ebx + 0x1c]
lea esi, [ebx + 0xc]
mov byte [esp + 0x18], cl
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 8]
push esi
push ebx
push edi
push eax
call fcn.10126cc0
add esp, 0x10
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x14], 0x2e
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x2e
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x14]
mov word [esp + 0x38], 1
call fcn.10126450
test eax, eax
je 0x1012891a
mov ebx, eax
mov edi, edx
xor eax, eax
jmp 0x101287ca
jne 0x10128ac8
nop word cs:[eax + eax]
nop dword [eax + eax]
mov dword [ebp + 8], esi
lea ecx, [esp + 0x14]
call fcn.10126450
mov ebx, eax
mov edi, edx
mov al, 1
test ebx, ebx
je 0x1012891a
test al, 1
je 0x101287ed
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 4]
jne 0x101287e3
push eax
push ebp
call fcn.10006450
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp]
mov byte [ecx + eax], 0x2e
inc dword [ebp + 8]
cmp edi, 4
mov ecx, edi
jb 0x10128880
lea edx, [ebx + 3]
mov ecx, edi
and edx, 0xfffffffc
mov eax, edx
sub eax, ebx
cmp eax, edi
ja 0x10128880
test dword [ebx], 0x80808080
jne 0x10128890
cmp edx, ebx
mov ecx, 4
cmove eax, ecx
lea ecx, [edi - 4]
cmp eax, ecx
jae 0x10128840
nop word cs:[eax + eax]
nop
test dword [ebx + eax], 0x80808080
jne 0x10128890
add eax, 4
cmp eax, ecx
jb 0x10128830
test dword [ebx + ecx], 0x80808080
jne 0x10128890
nop dword [eax]
mov eax, dword [ebp + 4]
mov esi, dword [ebp + 8]
sub eax, esi
cmp eax, edi
jb 0x10128907
mov eax, dword [ebp]
add eax, esi
push edi
push ebx
push eax
call fcn.10193640
add esp, 0xc
add edi, esi
mov esi, edi
jmp 0x101287b0
mov eax, ecx
sub eax, 1
jb 0x10128850
cmp byte [ebx + ecx - 1], 0
mov ecx, eax
jns 0x10128880
mov eax, dword [ebp + 4]
mov esi, dword [ebp + 8]
sub eax, esi
cmp eax, 3
mov eax, esi
jbe 0x101288f6
mov ecx, dword [ebp]
add edi, ebx
mov dword [ecx + eax], 0x2d2d6e78
add eax, 4
mov dword [ebp + 8], eax
push ebp
push edi
push ebx
call fcn.1012a340
add esp, 0xc
test al, al
je 0x101287b3
mov eax, dword [ebp + 8]
mov byte [esp + 8], 1
cmp eax, esi
jb 0x101287b3
test esi, esi
je 0x101287b0
cmp eax, esi
jbe 0x1012879b
mov eax, dword [ebp]
cmp byte [eax + esi], 0xbf
jg 0x101287b0
jmp 0x10128ac8
push 4
push esi
push ebp
call fcn.101a9310
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x1012889f
push edi
push esi
push ebp
call fcn.101a9310
add esp, 0xc
mov esi, dword [ebp + 8]
jmp 0x10128860
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
cmp byte [eax + 0x1a], 0
je 0x10128a19
mov eax, dword [ebp + 8]
mov ecx, dword [ebp]
xor ebx, ebx
test eax, eax
je 0x101289a5
cmp byte [ecx + eax - 1], 0x2e
jne 0x10128942
dec eax
je 0x101289a5
mov ebx, eax
mov ebp, ecx
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 0x2e
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x2e
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
mov word [esp + 0x38], 1
nop dword [eax]
mov ecx, edi
call fcn.10126450
test eax, eax
je 0x1012899f
test edx, edx
jne 0x10128990
test eax, eax
mov ecx, ebp
je 0x101289aa
mov byte [esp + 0x12], 1
cmp ebx, 0xfd
ja 0x10128a14
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 0x2e
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x2e
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ebx
mov word [esp + 0x38], 1
nop word cs:[eax + eax]
nop
mov ecx, edi
call fcn.10126450
test eax, eax
je 0x10128a10
cmp edx, 0x40
jb 0x10128a00
test eax, eax
je 0x10128a19
mov byte [esp + 0x11], 1
movzx ecx, byte [esp + 8]
movzx eax, byte [esp + 0xa]
movzx edx, byte [esp + 0xb]
mov ah, byte [esp + 0xc]
mov ch, byte [esp + 0xd]
mov dh, byte [esp + 0xe]
movzx ebx, byte [esp + 0xf]
mov bh, byte [esp + 0x10]
mov byte [esp + 6], al
mov byte [esp + 7], cl
or al, cl
mov cl, dl
mov byte [esp + 5], ah
mov byte [esp + 4], dh
mov byte [esp + 3], bl
or cl, ah
mov ah, ch
or cl, al
mov al, byte [esp + 0x11]
or ah, dh
mov dh, byte [esp + 0x13]
or ah, bl
mov bl, byte [esp + 9]
or ah, cl
mov cl, bh
or cl, al
or cl, ah
mov ah, byte [esp + 0x12]
or cl, ah
jne 0x10128a85
test bl, bl
jne 0x10128a85
mov cl, 2
test dh, dh
je 0x10128abc
mov cl, byte [esp + 6]
mov byte [esi + 1], bl
mov byte [esi + 2], cl
mov cl, byte [esp + 5]
mov byte [esi + 3], dl
mov byte [esi + 4], cl
mov cl, byte [esp + 4]
mov byte [esi + 5], ch
mov byte [esi + 6], cl
movzx ecx, byte [esp + 3]
mov byte [esi + 7], cl
movzx ecx, byte [esp + 7]
mov byte [esi + 8], bh
mov byte [esi + 9], al
mov byte [esi + 0xa], ah
mov byte [esi + 0xb], dh
mov byte [esi], cl
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1020253c
push 0x30
push str.assertion_failed:_self.is_char_boundary_new_len__rustc_2a8221dbdfd180a2d56d4b0089f4f3952d8c2bcdlibrary_alloc_src_string.rs
call fcn.101af1e0
add esp, 0xc
ud2