Function at 0x10019b70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x1001a317
mov ax, word [ebx + 2]
xor edx, edx
mov word [ebp - 0x28], ax
add edi, 0xa
mov al, byte [ebx + 4]
mov byte [ebp - 0x26], al
xor eax, eax
mov dword [ebp - 0x24], edx
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 9], al
mov dword [ebp - 8], edx
cmp byte [ebp - 0x26], 1
mov esi, edi
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], eax
jne 0x10019bea
lea esi, [edi + 2]
cmp esi, eax
ja 0x1001a0e7
push 2
push edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
push 2
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
movzx edx, word [ebp - 0x2c]
mov dword [ebp - 0x24], edx
jmp 0x10019c10
cmp byte [ebp - 0x26], 2
jne 0x10019c19
lea esi, [edi + 4]
cmp esi, eax
ja 0x1001a0e7
push 4
push edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], edi
push 4
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [ebp - 8], edx
mov cx, word [ebp - 0x28]
mov word [ebp - 0x20], cx
test cx, cx
jne 0x10019c53
lea ecx, [esi + 2]
mov dword [ebp - 8], ecx
cmp ecx, eax
ja 0x1001a0e7
push 2
push esi
lea eax, [ebp - 0x20]
push 2
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov esi, dword [ebp - 8]
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov cx, word [ebp - 0x20]
mov dword [ebp - 8], edx
movzx ecx, cx
lea eax, [ecx + esi]
cmp eax, dword [ebp - 4]
ja 0x1001a0e7
mov edi, eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jne 0x10019ccc
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, 4
jb 0x10019c89
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10019c8e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10019c78
cmp edx, 0xfffffffc
je 0x10019cc5
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x10019cbb
cmp edx, 0xfffffffd
je 0x10019cc5
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x10019cbb
cmp edx, 0xfffffffe
je 0x10019cc5
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10019cbb
cmp edx, 0xffffffff
je 0x10019cc5
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x10019cc5
mov edx, dword [ebp - 8]
sbb eax, eax
or eax, 1
jmp 0x10019cce
mov edx, dword [ebp - 8]
xor eax, eax
jmp 0x10019cce
sub eax, ecx
test eax, eax
js 0x1001a0e2
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 4], edi
je 0x10019d70
test ecx, ecx
je 0x10019d13
mov eax, dword [ebx + 0x14]
xor edx, edx
sub eax, dword [ebx + 0x10]
div ecx
mov edx, dword [ebp - 8]
cmp edx, eax
jbe 0x10019d09
push eax
lea ecx, [ebp - 0x28]
call fcn.1002d894
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 8], edx
imul ecx, edx
add edi, ecx
jmp 0x10019bb3
mov ax, word [ebx + 6]
xor esi, esi
mov word [ebp - 0x84], ax
mov al, byte [ebx + 8]
mov byte [ebp - 0x82], al
xor eax, eax
mov dword [ebp - 0x80], 0
mov word [ebp - 0x7c], ax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
test edx, edx
je 0x10019d5f
push dword [ebx + 0x14]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x84]
call fcn.1002b57b
test al, al
je 0x10019d5c
inc esi
cmp esi, dword [ebp - 0x24]
jb 0x10019d40
mov edi, dword [ebp - 4]
push esi
lea ecx, [ebp - 0x28]
call fcn.1002d894
mov edx, dword [ebp - 0x24]
jmp 0x10019bb0
movzx eax, word [ebx + 6]
or esi, 0xffffffff
mov word [ebp - 0x44], ax
mov al, byte [ebx + 8]
mov byte [ebp - 9], al
mov byte [ebp - 0x42], al
xor eax, eax
mov dword [ebp - 0x40], 0
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x1001a042
mov eax, dword [ebx + 0x14]
xor edx, edx
sub eax, edi
movzx esi, word [ebx + 6]
div ecx
mov edx, dword [ebp - 8]
cmp edx, eax
jbe 0x10019dce
push eax
lea ecx, [ebp - 0x28]
call fcn.1002d894
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebx + 0xc]
movzx esi, word [ebx + 6]
mov al, byte [ebx + 8]
mov dword [ebp - 8], edx
jmp 0x10019dd1
mov al, byte [ebp - 9]
imul ecx, edx
mov byte [ebp - 0x56], al
xor eax, eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x50], ax
mov dword [ebp - 0x4c], eax
add ecx, edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], ecx
mov eax, edi
mov word [ebp - 0x58], si
mov dword [ebp - 0x54], 0
mov dword [ebp - 4], eax
test edx, edx
je 0x10019f48
mov edi, dword [ebx + 0xc]
mov ecx, edx
shr ecx, 1
imul edi, ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0xc], ecx
add edi, eax
cmp byte [ebp - 0x56], 1
mov esi, edi
jne 0x10019e46
lea esi, [edi + 2]
cmp esi, ecx
ja 0x10019eb5
push 2
push edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], edi
push 2
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x54], eax
jmp 0x10019e65
cmp byte [ebp - 0x56], 2
jne 0x10019e6b
lea esi, [edi + 4]
cmp esi, ecx
ja 0x10019eb5
push 4
push edi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], edi
push 4
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov ax, word [ebp - 0x58]
movzx edx, ax
mov dword [ebp - 0x30], edx
mov word [ebp - 0x50], dx
test ax, ax
jne 0x10019ea4
lea eax, [esi + 2]
mov dword [ebp - 0x70], eax
cmp eax, ecx
ja 0x10019eb8
push 2
push esi
lea eax, [ebp - 0x50]
push 2
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
movzx edx, word [ebp - 0x50]
add esp, 0x10
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x30], edx
movzx eax, dx
add eax, esi
cmp eax, dword [ebp - 0xc]
ja 0x10019eb8
mov dword [ebp - 0x48], esi
mov edi, eax
jmp 0x10019eb8
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x14]
movzx ecx, dx
cmp eax, ecx
jne 0x10019f1e
mov ecx, dword [ebp + 0x10]
mov esi, eax
mov edx, dword [ebp - 0x48]
sub esi, 4
jb 0x10019ee1
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10019ee6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10019ed0
cmp esi, 0xfffffffc
je 0x10019f1a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10019f13
cmp esi, 0xfffffffd
je 0x10019f1a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10019f13
cmp esi, 0xfffffffe
je 0x10019f1a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10019f13
cmp esi, 0xffffffff
je 0x10019f1a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10019f1a
sbb eax, eax
or eax, 1
jmp 0x10019f20
xor eax, eax
jmp 0x10019f20
sub eax, ecx
test eax, eax
jle 0x10019f34
mov edx, dword [ebp - 8]
or eax, 0xffffffff
sub eax, dword [ebp - 0x10]
mov dword [ebp - 4], edi
add edx, eax
jmp 0x10019f37
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edx
test edx, edx
jne 0x10019e03
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jae 0x1001a0d1
cmp byte [ebp - 0x42], 1
mov esi, eax
mov edi, dword [ebx + 0x14]
jne 0x10019f7d
lea esi, [eax + 2]
cmp esi, edi
ja 0x10019fd8
push 2
push eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push 2
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
movzx eax, word [ebp - 0x30]
mov dword [ebp - 0x40], eax
jmp 0x10019f9c
cmp byte [ebp - 0x42], 2
jne 0x10019f9f
lea esi, [eax + 4]
cmp esi, edi
ja 0x10019fd8
push 4
push eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push 4
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
mov ax, word [ebp - 0x44]
mov word [ebp - 0x3c], ax
test ax, ax
jne 0x10019fcb
lea eax, [esi + 2]
mov dword [ebp - 0x14], eax
cmp eax, edi
ja 0x10019fd8
push 2
push esi
lea eax, [ebp - 0x3c]
push 2
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov esi, dword [ebp - 0x14]
add esp, 0x10
movzx eax, word [ebp - 0x3c]
add eax, esi
cmp eax, edi
ja 0x10019fd8
mov dword [ebp - 0x34], esi
movzx eax, word [ebp - 0x3c]
mov esi, dword [ebp + 0x14]
cmp esi, eax
jne 0x1001a03e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
sub esi, 4
jb 0x1001a001
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1001a006
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10019ff0
cmp esi, 0xfffffffc
je 0x1001a03a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1001a033
cmp esi, 0xfffffffd
je 0x1001a03a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1001a033
cmp esi, 0xfffffffe
je 0x1001a03a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1001a033
cmp esi, 0xffffffff
je 0x1001a03a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1001a03a
sbb esi, esi
or esi, 1
jmp 0x1001a091
xor esi, esi
jmp 0x1001a091
sub esi, eax
jmp 0x1001a091
mov eax, dword [ebp - 4]
xor edi, edi
test edx, edx
je 0x1001a0d1
nop
push dword [ebx + 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x10]
push eax
call fcn.1002b57b
test al, al
je 0x1001a088
push dword [ebp + 0x14]
lea ecx, [ebp - 0x44]
push dword [ebp + 0x10]
call fcn.10027e3c
mov esi, eax
test esi, esi
jle 0x1001a091
mov eax, dword [ebp - 0x10]
inc edi
mov dword [ebp - 4], eax
cmp edi, dword [ebp - 0x24]
jb 0x1001a050
jmp 0x1001a094
push edi
lea ecx, [ebp - 0x28]
call fcn.1002d894
mov eax, dword [ebp - 4]
test esi, esi
jne 0x1001a0d1
cmp byte [ebp - 0x42], 0
je 0x1001a0bb
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
add eax, dword [ebp + 0x18]
push eax
call fcn.1002d894
pop edi
mov al, 1
pop esi
mov byte [ebx + 0x20], al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebx + 0x20], 0
jne 0x1001a0ad
pop edi
xor al, al
mov byte [ebx + 0x20], al
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, eax
test eax, eax
je 0x1001a30c
mov al, 1
mov byte [ebp - 9], al
jmp 0x1001a0ed
mov edi, dword [ebp - 0x10]
jmp 0x1001a0f3
mov al, byte [ebp - 9]
mov dword [ebx + 0x14], edi
xor ecx, ecx
test al, al
jne 0x1001a133
cmp word [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movzx eax, ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1c], 0
lea ecx, [eax + 2]
je 0x1001a11f
movzx ecx, word [ebp - 0x28]
cmp byte [ebp - 0x26], 1
jne 0x1001a12a
add ecx, 2
jmp 0x1001a133
cmp byte [ebp - 0x26], 2
jne 0x1001a133
add ecx, 4
movzx esi, word [ebx + 6]
mov eax, dword [ebp + 0x18]
mov dl, byte [ebx + 8]
mov word [ebp - 0x6c], si
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x5c], esi
movzx esi, word [ebx + 6]
movzx eax, ax
mov byte [ebp - 0x6a], dl
mov word [ebp - 0x64], ax
mov dword [ebp - 0x60], 0
test si, si
jne 0x1001a16c
add eax, 2
jmp 0x1001a16e
mov eax, esi
cmp dl, 1
jne 0x1001a178
add eax, 2
jmp 0x1001a180
cmp dl, 2
jne 0x1001a180
add eax, 4
mov edx, dword [ebx + 0x18]
add ecx, eax
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x10], ecx
mov ecx, edx
sub ecx, esi
cmp esi, edx
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jb 0x1001a317
sub esi, edi
lea eax, [ecx + edi]
push esi
sub edx, ecx
push edi
sub edx, edi
push edx
push eax
call dword [sym.imp.msvcrt.dll_memmove_s]
mov eax, dword [ebx + 0x14]
add esp, 0x10
add eax, dword [ebp - 0x10]
cmp byte [ebp - 9], 0
mov dword [ebp - 4], eax
mov dword [ebx + 0x14], eax
jne 0x1001a262
mov cl, byte [ebp - 0x26]
mov esi, edi
cmp cl, 1
jne 0x1001a1f3
lea esi, [edi + 2]
cmp esi, eax
ja 0x1001a26c
mov ax, word [ebp - 0x24]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push 2
push eax
push 2
jmp 0x1001a207
cmp cl, 2
jne 0x1001a214
lea esi, [edi + 4]
cmp esi, eax
ja 0x1001a26c
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push edi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov eax, dword [ebp - 4]
add esp, 0x10
cmp word [ebp - 0x28], 0
jne 0x1001a23b
lea ecx, [esi + 2]
mov dword [ebp - 0x14], ecx
cmp ecx, eax
ja 0x1001a26c
push 2
lea ecx, [ebp - 0x20]
sub eax, esi
push ecx
push eax
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov esi, dword [ebp - 0x14]
add esp, 0x10
movzx edx, word [ebp - 0x20]
mov ecx, dword [ebp - 4]
lea eax, [edx + esi]
cmp eax, ecx
ja 0x1001a26c
push edx
push dword [ebp - 0x18]
sub ecx, esi
push ecx
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
movzx edi, word [ebp - 0x20]
add esp, 0x10
add edi, esi
jmp 0x1001a26c
push 1
lea ecx, [ebp - 0x28]
call fcn.1002721a
mov al, byte [ebp - 0x6a]
mov esi, dword [ebx + 0x14]
cmp al, 1
jne 0x1001a2a0
lea eax, [edi + 2]
mov dword [ebp - 0x14], eax
cmp eax, esi
ja 0x1001a308
mov ax, word [ebp - 0x68]
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push 2
push eax
push 2
push edi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov edi, dword [ebp - 0x14]
jmp 0x1001a2c0
cmp al, 2
jne 0x1001a2c3
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
cmp eax, esi
ja 0x1001a308
push 4
lea eax, [ebp - 0x68]
push eax
push 4
push edi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp word [ebp - 0x6c], 0
jne 0x1001a2ec
lea eax, [edi + 2]
mov dword [ebp - 0x14], eax
cmp eax, esi
ja 0x1001a308
push 2
lea eax, [ebp - 0x64]
push eax
mov eax, esi
sub eax, edi
push eax
push edi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov edi, dword [ebp - 0x14]
add esp, 0x10
movzx ecx, word [ebp - 0x64]
lea eax, [edi + ecx]
cmp eax, esi
ja 0x1001a308
push ecx
push dword [ebp - 0x5c]
sub esi, edi
push esi
push edi
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
mov byte [ebx + 0x20], 1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14