Function at 0x10019b50
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 0x1001a2f7
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 0x10019bca
lea esi, [edi + 2]
cmp esi, eax
ja 0x1001a0c7
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 0x10019bf0
cmp byte [ebp - 0x26], 2
jne 0x10019bf9
lea esi, [edi + 4]
cmp esi, eax
ja 0x1001a0c7
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 0x10019c33
lea ecx, [esi + 2]
mov dword [ebp - 8], ecx
cmp ecx, eax
ja 0x1001a0c7
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 0x1001a0c7
mov edi, eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jne 0x10019cac
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, 4
jb 0x10019c69
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10019c6e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10019c58
cmp edx, 0xfffffffc
je 0x10019ca5
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x10019c9b
cmp edx, 0xfffffffd
je 0x10019ca5
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x10019c9b
cmp edx, 0xfffffffe
je 0x10019ca5
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10019c9b
cmp edx, 0xffffffff
je 0x10019ca5
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x10019ca5
mov edx, dword [ebp - 8]
sbb eax, eax
or eax, 1
jmp 0x10019cae
mov edx, dword [ebp - 8]
xor eax, eax
jmp 0x10019cae
sub eax, ecx
test eax, eax
js 0x1001a0c2
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 4], edi
je 0x10019d50
test ecx, ecx
je 0x10019cf3
mov eax, dword [ebx + 0x14]
xor edx, edx
sub eax, dword [ebx + 0x10]
div ecx
mov edx, dword [ebp - 8]
cmp edx, eax
jbe 0x10019ce9
push eax
lea ecx, [ebp - 0x28]
call fcn.1002d824
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 8], edx
imul ecx, edx
add edi, ecx
jmp 0x10019b93
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 0x10019d3f
push dword [ebx + 0x14]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x84]
call fcn.1002b4fb
test al, al
je 0x10019d3c
inc esi
cmp esi, dword [ebp - 0x24]
jb 0x10019d20
mov edi, dword [ebp - 4]
push esi
lea ecx, [ebp - 0x28]
call fcn.1002d824
mov edx, dword [ebp - 0x24]
jmp 0x10019b90
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 0x1001a022
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 0x10019dae
push eax
lea ecx, [ebp - 0x28]
call fcn.1002d824
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 0x10019db1
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 0x10019f28
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 0x10019e26
lea esi, [edi + 2]
cmp esi, ecx
ja 0x10019e95
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 0x10019e45
cmp byte [ebp - 0x56], 2
jne 0x10019e4b
lea esi, [edi + 4]
cmp esi, ecx
ja 0x10019e95
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 0x10019e84
lea eax, [esi + 2]
mov dword [ebp - 0x70], eax
cmp eax, ecx
ja 0x10019e98
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 0x10019e98
mov dword [ebp - 0x48], esi
mov edi, eax
jmp 0x10019e98
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x14]
movzx ecx, dx
cmp eax, ecx
jne 0x10019efe
mov ecx, dword [ebp + 0x10]
mov esi, eax
mov edx, dword [ebp - 0x48]
sub esi, 4
jb 0x10019ec1
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10019ec6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10019eb0
cmp esi, 0xfffffffc
je 0x10019efa
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10019ef3
cmp esi, 0xfffffffd
je 0x10019efa
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10019ef3
cmp esi, 0xfffffffe
je 0x10019efa
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10019ef3
cmp esi, 0xffffffff
je 0x10019efa
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10019efa
sbb eax, eax
or eax, 1
jmp 0x10019f00
xor eax, eax
jmp 0x10019f00
sub eax, ecx
test eax, eax
jle 0x10019f14
mov edx, dword [ebp - 8]
or eax, 0xffffffff
sub eax, dword [ebp - 0x10]
mov dword [ebp - 4], edi
add edx, eax
jmp 0x10019f17
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edx
test edx, edx
jne 0x10019de3
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
jae 0x1001a0b1
cmp byte [ebp - 0x42], 1
mov esi, eax
mov edi, dword [ebx + 0x14]
jne 0x10019f5d
lea esi, [eax + 2]
cmp esi, edi
ja 0x10019fb8
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 0x10019f7c
cmp byte [ebp - 0x42], 2
jne 0x10019f7f
lea esi, [eax + 4]
cmp esi, edi
ja 0x10019fb8
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 0x10019fab
lea eax, [esi + 2]
mov dword [ebp - 0x14], eax
cmp eax, edi
ja 0x10019fb8
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 0x10019fb8
mov dword [ebp - 0x34], esi
movzx eax, word [ebp - 0x3c]
mov esi, dword [ebp + 0x14]
cmp esi, eax
jne 0x1001a01e
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
sub esi, 4
jb 0x10019fe1
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10019fe6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10019fd0
cmp esi, 0xfffffffc
je 0x1001a01a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1001a013
cmp esi, 0xfffffffd
je 0x1001a01a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1001a013
cmp esi, 0xfffffffe
je 0x1001a01a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1001a013
cmp esi, 0xffffffff
je 0x1001a01a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1001a01a
sbb esi, esi
or esi, 1
jmp 0x1001a071
xor esi, esi
jmp 0x1001a071
sub esi, eax
jmp 0x1001a071
mov eax, dword [ebp - 4]
xor edi, edi
test edx, edx
je 0x1001a0b1
nop
push dword [ebx + 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x10]
push eax
call fcn.1002b4fb
test al, al
je 0x1001a068
push dword [ebp + 0x14]
lea ecx, [ebp - 0x44]
push dword [ebp + 0x10]
call fcn.10027d7c
mov esi, eax
test esi, esi
jle 0x1001a071
mov eax, dword [ebp - 0x10]
inc edi
mov dword [ebp - 4], eax
cmp edi, dword [ebp - 0x24]
jb 0x1001a030
jmp 0x1001a074
push edi
lea ecx, [ebp - 0x28]
call fcn.1002d824
mov eax, dword [ebp - 4]
test esi, esi
jne 0x1001a0b1
cmp byte [ebp - 0x42], 0
je 0x1001a09b
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
add eax, dword [ebp + 0x18]
push eax
call fcn.1002d824
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 0x1001a08d
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 0x1001a2ec
mov al, 1
mov byte [ebp - 9], al
jmp 0x1001a0cd
mov edi, dword [ebp - 0x10]
jmp 0x1001a0d3
mov al, byte [ebp - 9]
mov dword [ebx + 0x14], edi
xor ecx, ecx
test al, al
jne 0x1001a113
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 0x1001a0ff
movzx ecx, word [ebp - 0x28]
cmp byte [ebp - 0x26], 1
jne 0x1001a10a
add ecx, 2
jmp 0x1001a113
cmp byte [ebp - 0x26], 2
jne 0x1001a113
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 0x1001a14c
add eax, 2
jmp 0x1001a14e
mov eax, esi
cmp dl, 1
jne 0x1001a158
add eax, 2
jmp 0x1001a160
cmp dl, 2
jne 0x1001a160
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 0x1001a2f7
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 0x1001a242
mov cl, byte [ebp - 0x26]
mov esi, edi
cmp cl, 1
jne 0x1001a1d3
lea esi, [edi + 2]
cmp esi, eax
ja 0x1001a24c
mov ax, word [ebp - 0x24]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push 2
push eax
push 2
jmp 0x1001a1e7
cmp cl, 2
jne 0x1001a1f4
lea esi, [edi + 4]
cmp esi, eax
ja 0x1001a24c
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 0x1001a21b
lea ecx, [esi + 2]
mov dword [ebp - 0x14], ecx
cmp ecx, eax
ja 0x1001a24c
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 0x1001a24c
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 0x1001a24c
push 1
lea ecx, [ebp - 0x28]
call fcn.1002715a
mov al, byte [ebp - 0x6a]
mov esi, dword [ebx + 0x14]
cmp al, 1
jne 0x1001a280
lea eax, [edi + 2]
mov dword [ebp - 0x14], eax
cmp eax, esi
ja 0x1001a2e8
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 0x1001a2a0
cmp al, 2
jne 0x1001a2a3
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
cmp eax, esi
ja 0x1001a2e8
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 0x1001a2cc
lea eax, [edi + 2]
mov dword [ebp - 0x14], eax
cmp eax, esi
ja 0x1001a2e8
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 0x1001a2e8
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