Function at 0x10018340
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 dword [ebp - 8], ebx
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x10018aba
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 - 4], edx
cmp byte [ebp - 0x26], 1
mov esi, edi
mov ebx, dword [ebx + 0x14]
mov dword [ebp - 0x14], edi
jne 0x100183ba
lea esi, [edi + 2]
cmp esi, ebx
ja 0x100188af
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 0x100183e0
cmp byte [ebp - 0x26], 2
jne 0x100183e6
lea esi, [edi + 4]
cmp esi, ebx
ja 0x100188af
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 dword [ebp - 4], edx
add esp, 0x10
mov ax, word [ebp - 0x28]
mov word [ebp - 0x20], ax
test ax, ax
jne 0x10018420
lea eax, [esi + 2]
mov dword [ebp - 4], eax
cmp eax, ebx
ja 0x100188af
push 2
push esi
lea eax, [ebp - 0x20]
push 2
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov esi, dword [ebp - 4]
add esp, 0x10
mov edx, dword [ebp - 0x24]
mov ax, word [ebp - 0x20]
mov dword [ebp - 4], edx
movzx ecx, ax
lea eax, [ecx + esi]
cmp eax, ebx
ja 0x100188af
mov edi, eax
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jne 0x10018498
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, 4
jb 0x10018455
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1001845a
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10018444
cmp edx, 0xfffffffc
je 0x10018491
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x10018487
cmp edx, 0xfffffffd
je 0x10018491
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x10018487
cmp edx, 0xfffffffe
je 0x10018491
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10018487
cmp edx, 0xffffffff
je 0x10018491
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x10018491
mov edx, dword [ebp - 4]
sbb eax, eax
or eax, 1
jmp 0x1001849a
mov edx, dword [ebp - 4]
xor eax, eax
jmp 0x1001849a
sub eax, ecx
test eax, eax
js 0x100188aa
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0xc]
je 0x10018540
mov dword [ebp - 0x10], edi
test ecx, ecx
je 0x100184e2
mov eax, dword [ebx + 0x14]
xor edx, edx
sub eax, dword [ebx + 0x10]
div ecx
mov edx, dword [ebp - 4]
cmp edx, eax
jbe 0x100184d5
push eax
lea ecx, [ebp - 0x28]
call fcn.10029ba5
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], edx
mov eax, dword [ebx + 0xc]
imul eax, edx
add edi, eax
jmp 0x10018386
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 0x1001852f
nop
push dword [ebx + 0x14]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x84]
call fcn.10027bfb
test al, al
je 0x1001852c
inc esi
cmp esi, dword [ebp - 0x24]
jb 0x10018510
mov edi, dword [ebp - 0x10]
push esi
lea ecx, [ebp - 0x28]
call fcn.10029ba5
mov edx, dword [ebp - 0x24]
jmp 0x10018383
mov ax, word [ebx + 6]
or esi, 0xffffffff
mov word [ebp - 0x44], ax
mov al, byte [ebx + 8]
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 0x10018805
mov eax, dword [ebx + 0x14]
xor edx, edx
sub eax, edi
div ecx
mov ecx, dword [ebp - 4]
cmp ecx, eax
jbe 0x1001858b
push eax
lea ecx, [ebp - 0x28]
call fcn.10029ba5
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], ecx
mov eax, dword [ebx + 0xc]
xor edx, edx
imul eax, ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0xc], edx
mov word [ebp - 0x50], dx
mov dword [ebp - 0x4c], edx
add eax, edi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x30], eax
mov ax, word [ebx + 6]
mov word [ebp - 0x58], ax
mov al, byte [ebx + 8]
mov byte [ebp - 0x56], al
test ecx, ecx
je 0x1001870a
mov ebx, dword [ebx + 0xc]
mov eax, ecx
mov ecx, dword [ebp - 8]
shr eax, 1
imul ebx, eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x10], ecx
add ebx, edi
cmp byte [ebp - 0x56], 1
mov esi, ebx
jne 0x10018608
lea esi, [ebx + 2]
cmp esi, ecx
ja 0x10018675
push 2
push ebx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x4c], ebx
push 2
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
movzx eax, word [ebp - 0x2c]
mov dword [ebp - 0x54], eax
jmp 0x10018627
cmp byte [ebp - 0x56], 2
jne 0x1001862d
lea esi, [ebx + 4]
cmp esi, ecx
ja 0x10018675
push 4
push ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x4c], ebx
push 4
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov ax, word [ebp - 0x58]
movzx edx, ax
mov dword [ebp - 0xc], edx
mov word [ebp - 0x50], dx
test ax, ax
jne 0x10018666
lea eax, [esi + 2]
mov dword [ebp - 0x70], eax
cmp eax, ecx
ja 0x10018675
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 - 0xc], edx
movzx eax, dx
add eax, esi
cmp eax, dword [ebp - 0x10]
ja 0x10018675
mov dword [ebp - 0x48], esi
mov ebx, eax
mov eax, dword [ebp + 0x14]
movzx ecx, dx
cmp eax, ecx
jne 0x100186e4
mov edx, dword [ebp + 0x10]
mov ecx, eax
mov esi, dword [ebp - 0x48]
sub ecx, 4
jb 0x100186a1
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x100186a6
add edx, 4
add esi, 4
sub ecx, 4
jae 0x10018690
cmp ecx, 0xfffffffc
je 0x100186dd
mov al, byte [edx]
cmp al, byte [esi]
jne 0x100186d3
cmp ecx, 0xfffffffd
je 0x100186dd
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x100186d3
cmp ecx, 0xfffffffe
je 0x100186dd
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x100186d3
cmp ecx, 0xffffffff
je 0x100186dd
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x100186dd
mov edx, dword [ebp - 0xc]
sbb eax, eax
or eax, 1
jmp 0x100186e6
mov edx, dword [ebp - 0xc]
xor eax, eax
jmp 0x100186e6
sub eax, ecx
test eax, eax
jle 0x100186f9
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
sub eax, dword [ebp - 0x14]
mov edi, ebx
add ecx, eax
jmp 0x100186fc
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x100185c2
cmp edi, dword [ebp - 0x30]
jae 0x10018846
cmp byte [ebp - 0x42], 1
mov esi, edi
mov ebx, dword [ebx + 0x14]
jne 0x10018740
lea esi, [edi + 2]
cmp esi, ebx
ja 0x1001879b
push 2
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x38], edi
push 2
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x40], eax
jmp 0x1001875f
cmp byte [ebp - 0x42], 2
jne 0x10018762
lea esi, [edi + 4]
cmp esi, ebx
ja 0x1001879b
push 4
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], edi
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 0x1001878e
lea eax, [esi + 2]
mov dword [ebp - 0x30], eax
cmp eax, ebx
ja 0x1001879b
push 2
push esi
lea eax, [ebp - 0x3c]
push 2
push eax
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov esi, dword [ebp - 0x30]
add esp, 0x10
movzx eax, word [ebp - 0x3c]
add eax, esi
cmp eax, ebx
ja 0x1001879b
mov dword [ebp - 0x34], esi
movzx eax, word [ebp - 0x3c]
mov ebx, dword [ebp + 0x14]
mov esi, ebx
cmp ebx, eax
jne 0x10018801
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
sub esi, 4
jb 0x100187c4
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100187c9
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100187b3
cmp esi, 0xfffffffc
je 0x100187fd
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100187f6
cmp esi, 0xfffffffd
je 0x100187fd
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100187f6
cmp esi, 0xfffffffe
je 0x100187fd
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100187f6
cmp esi, 0xffffffff
je 0x100187fd
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100187fd
sbb esi, esi
or esi, 1
jmp 0x10018862
xor esi, esi
jmp 0x10018862
sub esi, eax
jmp 0x10018862
xor ebx, ebx
test edx, edx
je 0x10018846
jmp 0x10018810
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], edi
push dword [eax + 0x14]
lea eax, [ebp - 0x14]
push eax
call fcn.10027bfb
test al, al
je 0x10018859
push dword [ebp + 0x14]
lea ecx, [ebp - 0x44]
push dword [ebp + 0x10]
call fcn.100242c2
mov esi, eax
test esi, esi
jle 0x10018864
mov edi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0x24]
jb 0x10018810
test edi, edi
je 0x10018aaf
mov byte [ebp - 9], 1
xor ecx, ecx
jmp 0x100188f5
push ebx
lea ecx, [ebp - 0x28]
call fcn.10029ba5
test esi, esi
jne 0x10018846
cmp byte [ebp - 0x42], 0
je 0x10018890
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
add eax, dword [ebp + 0x18]
push eax
call fcn.10029ba5
mov eax, dword [ebp - 8]
lea eax, [eax + 0x20]
pop edi
mov cl, 1
pop esi
mov byte [eax], cl
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
add eax, 0x20
cmp byte [eax], 0
jne 0x10018881
pop edi
xor cl, cl
pop esi
mov byte [eax], cl
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp - 0x14]
jmp 0x100188b5
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], edi
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 0x100188e1
movzx ecx, word [ebp - 0x28]
cmp byte [ebp - 0x26], 1
jne 0x100188ec
add ecx, 2
jmp 0x100188f5
cmp byte [ebp - 0x26], 2
jne 0x100188f5
add ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], ebx
movzx esi, word [eax + 6]
mov dl, byte [eax + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x14]
movzx eax, ax
mov word [ebp - 0x6c], si
mov byte [ebp - 0x6a], dl
mov word [ebp - 0x64], ax
test si, si
jne 0x1001892d
add eax, 2
jmp 0x1001892f
mov eax, esi
cmp dl, 1
jne 0x10018939
add eax, 2
jmp 0x10018941
cmp dl, 2
jne 0x10018941
add eax, 4
lea ebx, [eax + ecx]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x18]
mov ecx, edx
mov esi, dword [eax + 0x14]
sub ecx, esi
cmp esi, edx
sbb eax, eax
and eax, ecx
cmp eax, ebx
jb 0x10018aba
sub esi, edi
lea eax, [ebx + edi]
push esi
sub edx, ebx
push edi
sub edx, edi
push edx
push eax
call dword [sym.imp.msvcrt.dll_memmove_s]
mov ecx, dword [ebp - 8]
add esp, 0x10
add ebx, dword [ecx + 0x14]
cmp byte [ebp - 9], 0
mov dword [ecx + 0x14], ebx
jne 0x10018a18
mov al, byte [ebp - 0x26]
mov esi, edi
cmp al, 1
jne 0x100189ae
lea esi, [edi + 2]
cmp esi, ebx
ja 0x10018a22
mov ax, word [ebp - 0x24]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push 2
push eax
push 2
jmp 0x100189c1
cmp al, 2
jne 0x100189cb
lea esi, [edi + 4]
cmp esi, ebx
ja 0x10018a22
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push edi
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
cmp word [ebp - 0x28], 0
jne 0x100189f4
lea eax, [esi + 2]
mov dword [ebp - 0x30], eax
cmp eax, ebx
ja 0x10018a22
push 2
lea eax, [ebp - 0x20]
push eax
mov eax, ebx
sub eax, esi
push eax
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov esi, dword [ebp - 0x30]
add esp, 0x10
movzx ecx, word [ebp - 0x20]
lea eax, [ecx + esi]
cmp eax, ebx
ja 0x10018a22
push ecx
push dword [ebp - 0x18]
sub ebx, esi
push ebx
push esi
call dword [sym.imp.msvcrt.dll_memcpy_s]
movzx edi, word [ebp - 0x20]
add esp, 0x10
add edi, esi
jmp 0x10018a22
push 1
lea ecx, [ebp - 0x28]
call fcn.10023676
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x14]
mov al, byte [ebp - 0x6a]
cmp al, 1
jne 0x10018a48
lea ebx, [edi + 2]
cmp ebx, esi
ja 0x10018aa8
mov ax, word [ebp - 0x68]
mov word [ebp - 4], ax
lea eax, [ebp - 4]
push 2
push eax
push 2
jmp 0x10018a5b
cmp al, 2
jne 0x10018a67
lea ebx, [edi + 4]
cmp ebx, esi
ja 0x10018aa8
push 4
lea eax, [ebp - 0x68]
push eax
push 4
push edi
call dword [sym.imp.msvcrt.dll_memcpy_s]
mov edi, ebx
add esp, 0x10
cmp word [ebp - 0x6c], 0
jne 0x10018a8c
lea ebx, [edi + 2]
cmp ebx, esi
ja 0x10018aa8
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]
add esp, 0x10
mov edi, ebx
movzx ecx, word [ebp - 0x64]
lea eax, [edi + ecx]
cmp eax, esi
ja 0x10018aa8
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 eax, dword [ebp - 8]
mov byte [eax + 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